Â
#include <stdio.h>
int main()
{
//declare variables
char a;
int x;
float p;
double q;
//initialization
a = 'A';
x = 45;
p = 34.5;
q = 123.324545;
//using %x to print hexadecimal number address
//To print Address of any varaible '&' is used
printf("%x is the address of %c\n", &a, a);
printf("%x is the address of %d\n", &x, x);
printf("%x is the address of %f\n", &p, p);
printf("%x is the address of %f\n", &q, q);
return 0;
}
//..........Coded by Ananya Maurya
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP