if the intial condition of 1st if fails after sometime after entering into loop by once fullfilling the condition,does the whole loop terminate immediatly?
No, once the 'if' check has been done the rest of the code executes and continues until it has finished. No further checking of 'condition1' is carried out.
so... it will check condition to enter in the while loop and every step it will check if condition one is true... if not true.. it will break while loop and continues program from the last bracket in the code I sent.
while using "while"condition if our 1st situation didnt meet then can the whole process be terminated even if it is in processing of functioncall2??
- - - Updated - - -
thnx aveztruz
but in that condition also can the processing of the function call 2 be immediately stoped if 1st condition doesnt meet?can the whole process be immediately stopped if 1st contion doesnt meet even though it is in processing of called function?
thnx aveztruz
but in that condition also can the processing of the function call 2 be immediately stoped if 1st condition doesnt meet?can the whole process be immediately stopped if 1st contion doesnt meet even though it is in processing of called function?
pratti... You know that C language is procedural.. it means that the program will be executed line by line as it was written... so if you want something to interrupt the code, it needs to be verified all the time... once it is inside "while" it will execute all code inside unlees the program reaches a "break". That is why you need to check all the time.
maybe if you explain better the situation... what about is this program and more details we can help you to find a easier solution.
while using "while"condition if our 1st situation didnt meet then can the whole process be terminated even if it is in processing of functioncall2??
- - - Updated - - -
thnx aveztruz
but in that condition also can the processing of the function call 2 be immediately stoped if 1st condition doesnt meet?can the whole process be immediately stopped if 1st contion doesnt meet even though it is in processing of called function?