fork(6) download
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4.  
  5. int main(void) {
  6. char *s = "Hello World";
  7. char *p = strchr(s, 'o');
  8. printf("'%c' '%c'", *p, *(p+1));
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 2296KB
stdin
Standard input is empty
stdout
'o' ' '