#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?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following C code having void return-type function?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!