Question:

What is the output of this program?

    #include <iostream>
    using namespace std;
    int main()
    {
        float f1 = 0.5;
        double f2 = 0.5;
        if (f1 == 0.5f)
            cout << "equal";
        else
            cout << "not equal";
        return 0;
    }

 

Answers:


Keywords:

© 2017 QuizBucket.org