HOME

Friday, March 20, 2015

C PROGRAM USING POINTER TO DISPLAY VALUE AND ADDRESS OF VARIABLE

#include<stdio.h>
#include<conio.h>
void main()
{
    int a=5,*b;
    b=&a;
    printf("the value of a= %d\n",a);
    printf("the address of a is: %d\n",b);
    printf("the value of *b is: %d",*b);
    getch();


}

No comments:

Post a Comment