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

Lượng Tiger

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

Tìm kiếm

Back
Top