+ 2
What mean (i=0; i<10; i++)?
what mean i?
14 Respostas
+ 17
It means your loop start from 0
Goes till it is still less than 10 i.e upto 9.
And increases by a step of 1.
That is it will go from 0 to 9 i.e the loop runs 10 times.
+ 7
a) the first 👍part is the initial value of your loop, the is where you begin so when we say i=0 that mean the first value for your *i* variable is 0
b) the second✌ value is the condtion of the loop, that condtion will be compared every loop
c) the third👌 value is the rate of change in *i* value
this rate of change can be Increase or decrease or any equation as what your code need .
that is all 👍
i wish that i help you and you understand me
all the best😊
+ 4
It means the loop will be executed if i is 0, 1, 2,... 9
+ 2
(i=0; i<10; i++)
1) use it in a for loop to make something for a certain number of times. In this example, the sintax of your for loop is:
for(i=0; i<10; i++){
/* operations to execute */
}
2) in the example:
- the loop start from the value 0 (assigned to the variable “i”).
- the loop performs the operations defined in the loop;
- after executing this operations, increments of 1 the value of the variable “i”
- before executing operations, check the condition of the loop: in this example, if the value of the variable “i” is < 10 then your program will execut another time the operations and increment again “i”; if “i” is not < 10 the loop ends.
yor loop, in this example, run 10 times.
+ 1
A for loop that runs 9 times
+ 1
This for loop will run from 0 to 9 that means 10 times.
+ 1
for loop run 9 times
i=0 (initial value)
i<10 (stop condition)
i++ (action "increment one in each loop from 0 to 9 " )
+ 1
0 to 9
+ 1
I need an help around this program (Employing bloom filter in data leak protection applicationstome)
0
Actually 10 times, since it starts at 0
0
it means your code (which is inside this for loop) excute until value of i is less than 10( it means upto 9). In every iterration of loop value of i is increase by 1.
possible values of i is 0,1...9
0
she mean (if i=0 > if i++ > for i<10)
0
Hi