Important MCQ

Correct execution order of a for loop?

Q.Correct execution order of a for loop?

A) Condition -> Init -> Body -> Update
B) Init -> Condition -> Body -> Update
C) Init -> Body -> Condition -> Update
D) Body -> Init -> Update -> Condition
Correct Answer:
Option B
Detailed Explanation:
Init runs only once, at the start.