1.

What is the output of this program?
#include 
using namespace std;
int main()
{
enum channel {hotstar, zeetv, max};
enum symbol {anamol, hotstar};
int k = 0;
for (k = hotstar; k <= zeetv; k++) {
cout << k;
}
return 0;
}

A. Compilation Error
B. Runtime Error
C. Garbage Value
D. hotstar
E. None of these
Answer» B. Runtime Error


Discussion

No Comment Found

Related MCQs