+ 1
What is background method of for loop in c language
Means that for(i=2;i<=5;i++), so consider i=1 then 2<=5 ,2++. So how is output 4
3 Réponses
+ 2
After initializing the value, the condition is checked. If the condition evaluates to true then the body of the loop is executed and then the value is incremented so that the next iteration takes place.
But just in case if after initialization, your condition statement fails then the loop is terminated.
https://www.sololearn.com/learn/C/2927/
+ 2
What do you mean by background method?
+ 1
Thanks for the help