// Program 2 (Fails in compilation) void fun(void) { } int main(void) { fun(10, "GfG", "GQ"); return 0; }
Standard input is empty
prog.c: In function ‘main’: prog.c:5:5: error: too many arguments to function ‘fun’ fun(10, "GfG", "GQ"); ^ prog.c:2:6: note: declared here void fun(void) { } ^
Standard output is empty