Question

What is the final value of x after the following C++ code snippet executes?     int x = 10;     for (int i = 0; i < 3; ++i) {         x += i;     }     // Assume x is accessible here

A 10
B 11
C 12
D 13
E 16
Practice Next

Hey! Ask a query