C Programming :: Pointers - Discussion
Home > C Programming > Pointers > MCQs Questions Discussion
12 / 60
What is the output of the following C Program?
#include<stdio.h>
void main()
{
float a = 5.375;
char *p;
int i;
p = (char*) &a;
for (i = 0; i <= 3; i++)
printf ("%02X", (unsigned char) p[i]);
}
Note: binary equivalent of 5.375 in.normalised form is Ol00 0000 1010 1100 0000 0000 0000, 0000
#include<stdio.h>
void main()
{
float a = 5.375;
char *p;
int i;
p = (char*) &a;
for (i = 0; i <= 3; i++)
printf ("%02X", (unsigned char) p[i]);
}
Note: binary equivalent of 5.375 in.normalised form is Ol00 0000 1010 1100 0000 0000 0000, 0000
A40 AC 00 00
B00 00 AC 40
C00 CA 00 40
D00 00 CA 04
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!