fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. char name[10];
  6. char *p ;
  7. p = &name[0];
  8. scanf( "%s", p );
  9. printf( "%s\n", p );
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 2172KB
stdin
test
stdout
test