What is the output of the following code? #include #include…
What is the output of the following code? #include #include using namespace std;int main() { char *data = new char[6]; for(int i = 0; i < 5; i++) { data[i] = 'a'+i; } data[5] = '\0'; // Null terminate the string string s = data; cout
Read Details