#include<stdio.h> int GetSize(int); int main(){ static GetSize; int myvar=GetSize(GetSize); return 0; } int GetSize(int adr){ adr++; return adr; }
Standard input is empty
prog.c: In function ‘main’: prog.c:4:11: warning: type defaults to ‘int’ in declaration of ‘GetSize’ [-Wimplicit-int] static GetSize; ^ prog.c:5:21: error: called object ‘GetSize’ is not a function or function pointer int myvar=GetSize(GetSize); ^ prog.c:4:11: note: declared here static GetSize; ^
Standard output is empty