fork(2) download
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. void foo(char j[5])
  5. {
  6. printf("sizeof(j)=%d\n", sizeof(j));
  7. }
  8.  
  9. int main()
  10. {
  11. foo( (char *) malloc(1));
  12. }
  13.  
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
sizeof(j)=4