Sail E0 Webinar
Question


Which of the statements is correct about the program?


#include<stdio.h>
int main()
{
float a=3.14;
char *j;
j = (char*)&a;
printf("%d\n", *j);
return 0;
}
Options:
A .  It prints ASCII value of the binary number present in the first byte of a float variable a.
B .  It prints character equivalent of the binary number present in the first byte of a float variable a.
C .  It will print 3
D .  It will print a garbage value
Answer: Option A

No answer description available for this question. 



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers