fork download
  1. #include<iostream>
  2. #include<string.h>
  3. using namespace std;
  4. int main()
  5. {
  6. char str[]="abcdef";
  7. strcpy(str,"xyz");
  8. cout<<str[4];
  9. cout<<str;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
exyz