fork download
  1. #include<stdio.h>
  2. int GetSize(int);
  3. int main(){
  4. static GetSize;
  5. int myvar=GetSize(GetSize);
  6. printf("%d",myvar);
  7. return 0;
  8. }
  9. int GetSize(int adr){
  10. adr++;
  11. return adr;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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;
           ^
stdout
Standard output is empty