Vidyalelo
C Programming · Q140

Pointer

Programming · C Programming · question 140

Q140

What will be the output of the following C code? #include int main() int i = 10; void *p = &i; printf("%f ", *(float*)p); return 0;

A.
Compile time error
B.
Undefined behaviour
C.
10
D.
0.000000
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board