What will happen when you attempt to compile and run the following code?

What will happen when you attempt to compile and run the following code?
#include using namespace std;
int main (int argc, const char * argv[])
{
enum state { ok, error, warning}; enum state s1, s2, s3; s1 = ok; s2 = warning; s3 = error; s4 = ok; cout << s1<< s2<< s3; return 0; } A. It will print:"123"
B. compilation error
C. It will print:"021"
D. It will print:"132"

Download Printable PDF. VALID exam to help you PASS.

Posted in: CPA

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.