Vidyalelo
C++ Programming · Q34

Operators and Expressions in C++

Programming · C++ Programming · question 34

Q34

What will be the output of the following C++ code? #include using namespace std; main() double a = 21.09399; float b = 10.20; int c ,d; c = (int) a; d = (int) b; cout << c <<' '<< d; return 0;

A.
20    10
B.
10    21
C.
21    10
Answer
D.
10    20

Answer: Option C

Solution

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