Sir I understood the error which is due to post decrement operation from this video.But didn't understand how the pre decrement operation doesn't have any error.
in case of pre decrement, first the value changes then it is used. So when c will be 1. --c then c becomes 0 and 0 is used in the condition. Since 0 is equivalent to false, the condition is false and we exit the loop
Nice explaination
Thanks and welcome
Nice
Thanks
Nice video
Thanks
Sir I understood the error which is due to post decrement operation from this video.But didn't understand how the pre decrement operation doesn't have any error.
in case of pre decrement, first the value changes then it is used. So when c will be 1. --c then c becomes 0 and 0 is used in the condition. Since 0 is equivalent to false, the condition is false and we exit the loop
@@gagangupta3389 Thank you Sir.Understood now
Bhai jo tune question post kara tha usme tere se galti se printf me %dn ho gya tha mere ko confusion ho gya tha,🤔
it was by mistake