Q122
What will be the correct syntax for running two variable for loop simultaneously?
A.
for (i = 0; i < n; i++)
for (j = 0; j < n; j += 5)
for (j = 0; j < n; j += 5)
B.
for (i = 0, j = 0; i < n, j < n; i++, j += 5)
AnswerC.
for (i = 0; i < n;i++){}
for (j = 0; j < n;j += 5){}
for (j = 0; j < n;j += 5){}
D.
none of the mentioned
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board