S
Q. What is the output of this program?
Code:
#include
using namespace std;
int main()
{
float num0 = 10.6;
double num1 = 10.6;
if (num0 == 10.6f)
cout << "Arun";
else
cout << "Sharma";
return 0;
}
using namespace std;
int main()
{
float num0 = 10.6;
double num1 = 10.6;
if (num0 == 10.6f)
cout << "Arun";
else
cout << "Sharma";
return 0;
}
- Correct Answer - Option(B)
- Views: 119
- Filed under category C++
Discusssion
Login to discuss.