fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char str[]="Hello";
  6. //str[6]='\0';
  7. str[5]='y';
  8. printf("%s",str);
  9. return 0;
  10. }
Success #stdin #stdout 0s 4556KB
stdin
Standard input is empty
stdout
Helloy