Vidyalelo
C Programming · Q129

Pointer

Programming · C Programming · question 129

Q129

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

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

Answer: Option B

Solution

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