πŸ“Š Principles of Programming Languages
Q. What is the output of following code?
#include <iostream>
using namespace std;
int main()
{
int I;
enum test
{
a = 1, b, c, d, e, f, g, h
};

for (i = c; i <= g; i++) cout << " " << I;
return 0;
}
  • (A) syntax error
  • (B) 3 4 5 6 7
  • (C) 1 2 3 4 5
  • (D) none of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) 3 4 5 6 7

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
725
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate