fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char text[10];
  5. scanf("%9s", text);
  6. fflush(stdin);
  7. char next = getchar();
  8. printf("Next char: %c (numeric value: %d)\n", next, next);
  9. return 0;
  10. }
Success #stdin #stdout 0s 2252KB
stdin
abcd
e
stdout
Next char: 
 (numeric value: 10)