Tell the difficulties that i am difficult.
Gaurangkumar Khalasi wrote:
Tell the difficulties that i am difficult.
saloni jhanwar wrote:
Whatever you told nothing new my indirect question was j++ should execute after continue as you can see at reference code.i got that also but it looks bizarre if compare with reference code,quite tricky.
Gaurangkumar Khalasi wrote:
Tell the difficulties that i am difficult.
Tell the difficulties that i am difficult.
Gaurangkumar Khalasi wrote:I do not try to say that...
Please try out the following:
You will get 01222
saloni jhanwar wrote:No I am not satisfied continue means just skip the current iteration of loop but not current iteration expression as i can see in book.
gurpeet singh wrote:
yes you are right and it DOES NOT skip the iteration expression.
gurpeet singh wrote:
when you encounter continue statement labelled or not ,it stops executing/skip the statements after the continue statement and goes straightway to next iteration
Tell the difficulties that i am difficult.
saloni jhanwar wrote:how are you posting i am not getting at all your post itself has contradiction.
you said
gurpeet singh wrote:
yes you are right and it DOES NOT skip the iteration expression.
gurpeet singh wrote:
when you encounter continue statement labelled or not ,it stops executing/skip the statements after the continue statement and goes straightway to next iteration
without iteration expression goes straightway to next iteration ??? what you wrote ?
and where is problem? see my question then you will get.
Tell the difficulties that i am difficult.
saloni jhanwar wrote:If we resume outer "for loop" then that outer "for loop" itself take care for its iteration expression, should it depend on inner loop or continue statement ? if we wont use continue in inner loop then i++ wont happen ?
gurpeet singh wrote:
saloni jhanwar wrote:If we resume outer "for loop" then that outer "for loop" itself take care for its iteration expression, should it depend on inner loop or continue statement ? if we wont use continue in inner loop then i++ wont happen ?
if we don't use continue in inner loop then i++ won't happen and the inner loop will keep on executing till its test expression returns true.
Tell the difficulties that i am difficult.
Steve
Steve
Steve
Tell the difficulties that i am difficult.
Steve Luke wrote:
Right there, you re-assign j to 0 at the start of the loop, so you would not be able to see if the j++ was skipped or not - you would always be resetting to 0.
Tell the difficulties that i am difficult.
saloni jhanwar wrote:I've checked J doesn't increment in above case also,as i expect it should be.
Steve
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Consider Paul's rocket mass heater. |