Question:What would be printed on the standard output as a result of the following code snippet?
main()
{
        int n=5, x;
        x = n++;
        printf("%d ", x);
        x = ++n;
        printf("%d ", x++);
        printf("%d", x);
        return 0;
}
 

A 6 7 8 

B 5 7 8 

C 6 8 8 

D 5 8 8 

E None 

+ Answer
+ Report
Total Preview: 489

Copyright © 2024. Powered by Intellect Software Ltd