what will be the output of the c program?
#include<stdio.h> #include<math.h >
int main() { float a = 5.375;
char *p;
int i;
p = (char*)&a;
for(i = 0; i<1; i++)
printf("%d ", p[3]);
return 0; }
Answers
Answered by
2
Output:-
5.375✔️✔️(verified)
Explanation:-
if p[0]
then output will be
=>5
if p[1]
then output will be
=>5.3
if p[2]
then output will be
=>5.37
Similar questions