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

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)