-
What is the output of this program?
#include
using namespace std;
int main()
{
float num0 = 10.6;
double num1 = 10.6;
if (num0 == 10.6f)
cout << "Interview";
else
cout << "Mania";
return 0;
}
-
- Interview
- Mania
- Compilation Error
- Runtime Error
- None of these
Correct Option: B
10.6f results in 10.6 to be stored in floating point representations.