My Profile

I, Das ShrikKrishna J. MCA III IMSCD&R, Ahmednagar.
Showing posts with label Implement the Concept of Pointers. Show all posts
Showing posts with label Implement the Concept of Pointers. Show all posts

Monday, 15 August 2011

Implement the Concept of Pointers

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();
}

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls