#include<stdio.h> int a,b,c=0; void prfun(void) main() { static int a=1; prfun(); a+=1; prfun(); ptintf(" \n %d %d ",a,b); } void prfun(void) { static int a=2; int b=1; a += ++b; printf(" \n %d %d "a,b); } }
Standard input is empty
prog.cpp:4: error: expected initializer before ‘main’ prog.cpp: In function ‘void prfun()’: prog.cpp:17: error: expected `)' before ‘a’ prog.cpp:17: warning: too few arguments for format prog.cpp: At global scope: prog.cpp:19: error: expected declaration before ‘}’ token
Standard output is empty