L Linh Chi New member Sep 21, 2021 #1 What will be the output of the following C code having void return-type function? Code: #include <stdio.h> 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
What will be the output of the following C code having void return-type function? Code: #include <stdio.h> 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