Question
What is the output of this program?
#include < iostream >
using namespace std;
main()
{
double a = 21.09399;
float b = 10.20;
int c ,d;
8. c = (int) a;
d = (int) b;
cout
Answer: Option C
Was this answer helpful ?
In this program, we are casting the operator to integer, So it is printing as 21 and 10
Was this answer helpful ?
More Questions on This Topic :
Question 8. How many types of loops are there? ....
Question 9. The switch statement is also called as? ....
Submit Solution