Important MCQ

Output of cout << "5+3"; is

Q.Output of cout << "5+3"; is

A) 5+3
B) 53
C) Error
D) 8
Correct Answer:
Option A
Detailed Explanation:
A) 5+3 is correct. cout is an ostream object used for screen output with the insertion operator <<. Quoted text is printed literally, expressions are evaluated, and endl or \n starts a new line.