skip to main |
skip to sidebar
Value & Address of a Variable
#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