0

Output of the program

#include <stdio.h> int main() { void main() printf("1"); foo(); } void foo() { print("2"); }

30th Mar 2020, 5:17 AM
V Sandralega
V Sandralega - avatar
1 Answer
+ 1
Code is not valid. void main shouldn't be in line #4. also instead of print should be printf. if you remove line #4 and replace print with printf then output will be 12
30th Mar 2020, 6:20 AM
andriy kan
andriy kan - avatar