πŸ“Š C++
Q. What is the output of this program?
Code:
#include 
    using namespace std;
    enum test 
    {
        p = 20, q, r
    };
    int main()
    {
        cout << p <<" " << q<< " " << r;
        return 0;
    }
  • (A) 20 21
  • (B) 21 22
  • (C) 20 21 22
  • (D) 20 22
πŸ’¬ Discuss
βœ… Correct Answer: (C) 20 21 22

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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