Vidyalelo
C Programming · Q103

Function

Programming · C Programming · question 103

Q103

What will be the output of the following C code? #include int *m() int *p = 5; return p; void main() int *k = m(); printf("%d", k);

A.
5
Answer
B.
Junk value
C.
0
D.
Error

Answer: Option A

Solution

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