fork download
  1. #include <stdio.h>
  2. void test(int *ptr)
  3. {
  4. *ptr = 50;
  5. }
  6. int main()
  7. {
  8. int number = 3;
  9. test(&number);
  10. printf("number = %d\n", number);
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, or enum expected
#include <stdio.h>
         ^
Main.java:5: error: class, interface, or enum expected
}
^
Main.java:9: error: class, interface, or enum expected
	test(&number);
	^
Main.java:10: error: class, interface, or enum expected
	printf("number = %d\n", number);
	^
Main.java:11: error: class, interface, or enum expected
}
^
6 errors
stdout
Standard output is empty