Vidyalelo
C++ Programming · Q12

Introduction to C++

Programming · C++ Programming · question 12

Q12

What is the output of the following code: int x = 5, y = 2; cout << x / y;

A.
2.5
B.
2
Answer
C.
Compilation error
D.
2.2

Answer: Option B

Solution

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