Home / MCQ Bank / Computer
Computer Classes And Objects In C Plus Plus Difficulty: Medium

What will be the output of the following C++ code? #include <iostream> #include <string> 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; }

Select the correct option to test your answer:

More Computer Questions

What is the name of a data member of class Vector which is used to store a number of elements in the vector? What is the default value of a char variable in Java if it's not explicitly initialized? What is abc in the following MySQL statement? CREATE VIEW xyz (abc) AS SELECT a FROM t; Which of the following relationship are usually identified as average effects? In MS-WORD 2007, to get to the 'Symbol' dialog box, click on the ......... menu and choose 'Symbol'.