Vidyalelo
C++ Programming · Q65

Classes and Objects in C++

Programming · C++ Programming · question 65

Q65

What will be the output of the following C++ code? #include #include using namespace std; int main(int argc, char const *argv[]) char s1[6] = "Hello"; char s2[6] = "World"; char s3[12] = s1 + " " + s2; cout<<s3; return 0;

A.
Hello World
B.
Hello
C.
World
D.
Error
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board