-
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;
}
-
- If you were boy, you would be 5
- If you were boy, you would be 0
- If you were boy, you would be 10
- All of above
- None of these
Correct Option: A
The age will be divided by using compound assignment operator and so it will return the age of the boy according to your age.