Sail E0 Webinar
Question


What is output of the this program?


1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
int i;
6.
enum month {
7.
JAN = 1, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
8.
};
9.
for (i = MAR; i
Options:
A .  01234567891011
B .  123456789101112
C .  34567891011
D .  123456789
Answer: Option C

we are getting the values from march to november and printing its concern number.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers