-
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;
}
-
- Compilation Error
- Runtime Error
- Garbage Value
- hotstar
- None of these
Correct Option: A
In function 'int main()':
6:30: error: redeclaration of 'hotstar'
5:23: note: previous declaration 'main()::channel hotstar'