fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int array[100000000];
  4. int main(int argc, char *argv[]) {
  5. printf("hello, world!\n %s", argv[0]);
  6. system("ls -l ./prog");
  7. return 0;
  8. }
  9. /* end */
  10.  
Success #stdin #stdout 0s 392448KB
stdin
Standard input is empty
stdout
-rwxr-xr-x 1 root 110 3264 2013-06-30 23:04 ./prog
hello, world!
 ./prog