Program in C to Implement the Concept of Pointers
#include<stdio.h>#include<conio.h>
void main()
{
int n=10,*pn;
clrscr();
pn=&n;
printf("Content of variable n = %d\n",n);
printf("Address of variable n = %u\n",&n);
printf("Content at address of n = %d\n",*(&n));
printf("Value of Pointer variable pn = %u\n",pn);
printf("Pointer Variable pn = %d\n",*pn);
printf("Address of variable pn = %u\n",&pn);
getch();
}
No comments:
Post a Comment