1#include<iostream>
2using namespace std;
3main() {
4 string my_string = "This is a sample text";
5 cout << my_string << endl;
6 my_string = "This is a sam\0ple text"; //check the \0
7 cout << my_string;
8}
9//Outputs
10/*This is a sample text
11This is a sam*/