πŸ“Š C++
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) If you were boy, you would be 5

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
209
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Rohan Raj
Publisher
πŸ“ˆ
94%
Success Rate