retagged by
1,186 views

3 Answers

1 votes
1 votes
the

for(i=0;i<n;++i) this satement is executed for n+1 times  0-n

{

// here whatever it may be  it is executed n times 0-n-1

}
0 votes
0 votes
Loop will run n+1 times but the point which comes here is that successfully it runs n times and one last for terminating condition when i reaches n...so its said how many times loop runs simple answer n+1...you can also say successfully it ran n times and 1 time it was unsuccessfull..!

Related questions

0 votes
0 votes
1 answer
1
neha singh asked Jun 16, 2016
1,286 views
how many no of times the instruction sequence below will loop before coming out of loop?A1; MOV AL,00H INC AL JNZ A1
1 votes
1 votes
2 answers
2
ajit asked Sep 17, 2015
15,853 views
how many number of times the instruction sequence below will loop before coming out of the loop?             MOV AL,00H  A1:       INC AL      ...
0 votes
0 votes
1 answer
3
Sara86568 asked Jun 21, 2022
966 views
The program runs in 100s. Multiplies 80 % of the program. Designer M can improve the speedup of multiply operations. Now, I am a user and I need to make MY program 5 time...
0 votes
0 votes
0 answers
4
Akriti sood asked Dec 27, 2016
358 views
in an effort to make MERGE-SORT faster, you decide to divide the array into k equal sized, disjoint subarrays, where k 2. This means that you have to merge k lists. How ...