Demo of Pointer

Thursday, 8 September 2011

#include<stdio.h>
#include<conio.h>
void main()
{
int a,*pa;
clrscr();
pa=&a;
*pa=10;
printf("Address of a=%u\n",&a);
printf("Value of a=%d\n",a);
getch();
}

OUTPUT:

Address of a=65524
value of a=10








No comments:

Post a Comment

 

Blogger news

Blogroll

Enter your email address:

Delivered by FeedBurner

Total Pageviews

Followers

Most Reading