What will be the output of the following C++ code? #include<iostream>…
What will be the output of the following C++ code? #include<iostream> #include<string> using namespace std; int main(int argc, char *argv[]) { char s1[6] = "Hello"; char s2[6] = "World"; char s3[12] = s1 + " " + s2; cout << s3; return 0; }
- A.
Hello
- B.
World
- C.
Error
- D.
More than one of the above
- E.
None of the above
Attempted by 707 students.
Sign up free to check your answer
Sign up freeLoading lesson…

