fork download
  1. #include <stdio.h>
  2. int main ()
  3. {
  4. char x[6] = "12345\0";
  5. char y[6] = "67890\0";
  6. y[7]='A';
  7. printf("X: %s\n",x);
  8. printf("Y: %s\n",y);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 2052KB
stdin
Standard input is empty
stdout
X: 12345
Y: 67890