Vidyalelo
C++ Programming · Q150

Classes and Objects in C++

Programming · C++ Programming · question 150

Q150

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

A.
2110
Answer
B.
1210
C.
21
D.
121

Answer: Option A

Solution

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