Print address of a variable using pointer


#include<stdio.h>
#include<conio.h>
main()
{
      int n=3;
      int *p;
      p=&n;
      printf("the address of n is %x",p);
      getch();
}
     

0 comments:

Post a Comment