fork download
  1. #include <stdio.h>
  2.  
  3. // the following code runs to compltion
  4.  
  5. // int main() {
  6. // printf( "Hello %s\n", NULL );
  7. // printf( "%s", NULL );
  8. // printf( "World %s\n", NULL );
  9. // }
  10.  
  11.  
  12. // the following code crashes
  13.  
  14. int main() {
  15. printf( "Hello %s\n", 0 );
  16. printf( "%s", NULL );
  17. printf( "World %s\n", NULL );
  18. }
  19.  
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
Hello (null)
(null)World (null)