Q. What is the value of i after this loop?

Code:
int i;
for(i = 0; i < 5; i++){}
  • (A) 4
  • (B) 5
  • (C) 6
  • (D) 0
πŸ’¬ Discuss
βœ… Correct Answer: (B) 5
Explanation: The loop increments i after the last check, ending with i = 5.
Explanation by: Mr. Dubey
The loop increments i after the last check, ending with i = 5.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
82
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate