What is the output of the following code: int x = 5, y = 2; cout << x / y; in C++?
A. 2.5
B. 2.6
C. Compilation error
D. 2
Answer: Option D
Related Questions on Introduction to C plus plus
What does the 'cin' object in C++ represent?
A. File output stream
B. File input stream
C. Standard output stream
D. Standard input stream

Join The Discussion