Home / Programming MCQs / C++ MCQs / Question

R

Rohan Raj • 6.53K Points
Tutor III

Q. What is the output of this program?

Code:
#include 
    using namespace std;
    enum  boy
    {
        num = 20
    };
    int main()
    {
        int age = 100;
        age /= num;
        cout << "If you were boy, you would be " << age << endl;
        return 0;
    }
(A) If you were boy, you would be 5
(B) If you were boy, you would be 0
(C) If you were boy, you would be 10
(D) All of above

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.