A

Admin • 833K Points
Coach

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
  • Correct Answer - Option(A)
  • Views: 15
  • Filed under category C++
  • Hashtags:

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.