What will be the output of the following C++ code? [code] #include <iostream> using namespace std; int main() {

What will be the output of the following C++ code?
Code:
    #include <iostream>
    using namespace std;
    int main()
    {
        int i;
        enum month 
        {
            JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,DEC
        };
        for (i = JAN; i <= DEC; i++)
            cout << i;
        return 0;
    }
A. 012345678910
B. 0123456789
C. 01234567891011
D. 01234567891011122
 

Tìm kiếm

Back
Top