-
What is the output of this program?
#include <iostream>
using namespace std;
int main()
{
double P = 12.93099;
float Q = 11.120;
int R ;
R = (int) P;
cout << R <<" ";
R = (int) Q;
cout << R ;
return 0;
}
-
- 12.93099 11.120
- 11.120 12.93099
- 11 12
- 12 11
- None of these
Correct Option: D
In this program, we casted the data type to integer.