Home » C++ Programming » Data Types » Question
  1. What is the output of this program?
    #include 
    using namespace std;
    enum Gender {
    male, female, transgender
    };
    int main()
    {
    cout << male<< female<< transgender;
    return 0;
    }
    1. male
    2. female
    3. transgender
    4. All of above
    5. 012
Correct Option: E

The enumerator values start from zero if it is unassigned.



Your comments will be displayed only after manual approval.