S

Siddharth M • 1.75K Points
Master

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;
    }
  • (A) Arun
  • (B) Sharma
  • (C) Compilation Error
  • (D) Runtime Error
  • Correct Answer - Option(B)
  • Views: 103
  • Filed under category C++

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics