Value & Address of a Variable

Thursday, 8 September 2011

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


OUTPUT:


Address of a=65524
Value of a=10
Address of b=65520
Value of b=20.340000








No comments:

Post a Comment

 

Blogger news

Blogroll

Enter your email address:

Delivered by FeedBurner

Total Pageviews

Followers

Most Reading