cout in C++ stands for
2023
cout in C++ stands for
- A.
class output
- B.
character output
- C.
common output
- D.
More than one of the above
- E.
More than one of the above
Attempted by 297 students.
Show answer & explanation
Correct answer: B
In C++, 'cout' is a predefined object used for output operations. It stands for 'character output' because it is used to display characters on the standard output device (usually the screen). Step 1: 'cout' is not a class; it is an object of the 'ostream' class. Therefore, 'class output' is incorrect. Step 2: 'character output' is the correct interpretation because 'cout' outputs characters, not general data types. Step 3: 'common output' is not a valid term in C++ and does not describe the function of 'cout'. Step 4: Since only one option correctly defines 'cout', options claiming 'more than one' are incorrect.