Variable Vs Pointers

#include<stdio.h>
#include<conio.h>
void main()
{
int x,y,*p;
x=10;
p=&x;
x=*p;
clrscr();
printf("%d is stored at %u",x,&x);
printf("%d is stored at %u",*p,p);
*p=25;
printf("%d",x);
getch();

No comments:

Related Posts with Thumbnails