Search This Blog

Thursday, October 13, 2011

Write a program to declare a pointer variable x and display its address

   1:  #include<stdio.h>
   2:  #include<conio.h>
   3:  void main()
   4:  {
   5:  float x;
   6:  float *address_of_x;
   7:  address_of_x=&x;
   8:  printf("Address of x= %ld\n",address_of_x);
   9:  getch();
  10:  }

No comments:

Post a Comment