-
What is the output of this program?
#include
using namespace std;
enum test
{
p = 20, q, r
};
int main()
{
cout << p <<" " << q<< " " << r;
return 0;
}
-
- 20 21
- 21 22
- 20 21 22
- 20 22
- None of these
Correct Option: C
If we not assigned any value to enum variable means, then the next number to initialized number will be allocated to the variable.