Hi all, I am bit confused about this question: What is the value of i after the for statement is done?
int n = 100;
int m;
n = m;
for (int i = 0; i < ; i++) {
..
}
I tried to write it down all the step from when i = 1,2,3,4,5,..and so on, when it comes to i = 100 the loop will exit - so meaning: i will print 99 times
Am I right here? But when I tried to use compiler to run it, all is, i = 100 and it printed 100 of times.
Can someone please clarify me about this.
Thanks