11th Nov 2020, 12:23 PM
Krishna
Krishna - avatar
6 Answers
+ 8
Krishna while(a++>25 ) a is 3 when it enters while loop since 3 is not greater than 25 it exits while loop and a value becomes 4
11th Nov 2020, 12:41 PM
Abhay
Abhay - avatar
+ 4
a++ increments the value of a afterwards a is 25 now ++a //increments it immediately ,a is 26 now while(a++ <25) loop is checked here a++ increments it value by 1 afterwards and so a is 27 now
11th Nov 2020, 12:33 PM
Abhay
Abhay - avatar
+ 4
You're welcome!✌
11th Nov 2020, 12:43 PM
Abhay
Abhay - avatar
+ 2
Abhay I changed the code Sorry I need the explanation for the recent one......
11th Nov 2020, 12:38 PM
Krishna
Krishna - avatar
+ 2
Abhay thank you 😇
11th Nov 2020, 12:42 PM
Krishna
Krishna - avatar
+ 1
But why I'm getting the output as 4?
11th Nov 2020, 12:36 PM
Krishna
Krishna - avatar