Computer · C++ Programming
What is the result after the execution of the following code snippet if 'a' is 10, 'b' is 5, and 'c' is 10? if ((a > b) && (a <= c)) a = a + 1; else c = c + 1;
- 1a = 11, c = 10✓
- 2a = 10, c = 10
- 3a = 10, c = 11
- 4a = 11, c = 11
Correct answer
a = 11, c = 10
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on C++ Programming?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer · C++ Programming