Vidyalelo
C++ Programming · Q38

Introduction to C++

Programming · C++ Programming · question 38

Q38

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board