Vidyalelo
C Programming · Q65

Function

Programming · C Programming · question 65

Q65

What will be the output of the following C code having void return-type function? #include void foo() return 1; void main() int x = 0; x = foo(); printf("%d", x);

A.
1
B.
0
C.
Runtime error
D.
Compile time error
Answer

Answer: Option D

Solution

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