Examveda

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;
}

A. Hello World

B. Hello

C. World

D. Error

Answer: Option D


Join The Discussion

Related Questions on Classes and Objects in C plus plus