CPA practice question 13 of 30

What is the output of the program given below? #include using namespace std; int main (int argc, const char * argv[]) { enum state { ok, error…

Choose your answer, then check it against the explanation.

What is the output of the program given below? #include using namespace std; int main (int argc, const char * argv[]) { enum state { ok, error, warning}; enum state s1, s2, s3, s4; s1 = ok; s2 = warning; s3 = error; s4 = ok; cout << s1<< s2<< s3<< s4; return 0; }
Answer options
Question 13 of 30

Keep practicing

Take the free CPA practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other CPA practice questions

Scroll to Top