0
Output of the program
#include <stdio.h> int main() { void main() printf("1"); foo(); } void foo() { print("2"); }
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