1.

What is the output of this program?
#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
E. None of these
Answer» B. If you were boy, you would be 0


Discussion

No Comment Found

Related MCQs