Consider the main body of a C++ program,

string var1 = “Computer “;

string var2 = “Science”;

string var3 = var1 + var2;

cout << var3 << endl;

If the program is run, what will be displayed on the screen?

(A) var3

(B) Computer

(C) Science

(D) Computer Science

Post a Comment

0 Comments