fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char pieces[9][4] = { " ", " o ", " a ", " ", " ", " ", " b ", " ", " " };
  5.  
  6. printf("At point 1: %s\n",pieces[2]);
  7. strcpy(pieces[2]," x ");
  8. printf("At point 2: %s",pieces[2]);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 4544KB
stdin
Standard input is empty
stdout
At point 1:  a 
At point 2:  x