state gov UP Police Programmer Grade 2 Mock Test Series Programming and Data Structure Programming in C Pointer
What is the output of the following code?
int main()
{
float k = 5.375;
char *m;
int i;
m = (char*)&k;
for(4; 7; 2)
printf("%d ", m[4]);
return 0;
}
1
Compilation error
2
Infinite garbage value
3
5
4
5.375