fork download
  1. #include <stdio.h>
  2.  
  3. int func()
  4. {
  5. return(printf("Hello world"));
  6. }
  7.  
  8. int main()
  9. {
  10. printf("%zu",sizeof(func));
  11. return 0;
  12. }
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:10:24: error: invalid application of 'sizeof' to a function type [-Werror=pointer-arith]
     printf("%zu",sizeof(func));
                        ^
cc1: all warnings being treated as errors
stdout
Standard output is empty