fork download
  1. #include<stdio.h>
  2.  
  3. int main(int argc, char *argv[]) {
  4. int c;
  5. while ((c = getchar()) != EOF) {
  6. printf("%d ", c != EOF);
  7. putchar(c);
  8. }
  9. printf("\n%d\n", c != EOF);
  10. }
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
0