program to acess the variable through pointer

Program to acess the variable through pointer 






STUDY EVERTHING 



#include<stdio.h>

#include<conio.h>
void main( )
 {
     int x=50, y; int *ptr;
     ptr = &x;
     y = *ptr;
          printf("\n %d is stored at address: %u",x, &x);
          printf("\n %d is stored at address: %u",x, &x);
          printf("\n %d is stored at address: %u",x, &x);
          getch();
     }













Post a Comment

If you have furthur QUERIES please let us know

Previous Post Next Post