Question
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
enum channel {star, sony, zee};
6.
enum symbol {hash, star};
7.
int i = 0;
8.
for (i = star; i
What is the output of this program?
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
enum channel {star, sony, zee};
6.
enum symbol {hash, star};
7.
int i = 0;
8.
for (i = star; i
Answer: Option C
Was this answer helpful ?
enumartion variable 'star' appears two times in main() which causes the error. An enumaration
constant must be unique within the scope.
Was this answer helpful ?
More Questions on This Topic :
Question 7.
Identify the incorrect option.
....
Submit Solution