Solved

Which of the Following Code Segments Prints a Single Line

Question 21

Multiple Choice

Which of the following code segments prints a single line containing hello there with the words separated by a single space?


A) std::cout << "hello "; std::cout << " there";
B) std::cout << "hello" , " there";
C) std::cout << "hello"; std::cout << "there";
D) std::cout << "hello"; std::cout << " there";

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions