+ 2

How the value 5 and 8 comes? Anyone help pls...

https://code.sololearn.com/cIvKmeLlz388/?ref=app

9th Sep 2020, 2:38 PM
Rahul.R.M.
Rahul.R.M. - avatar
2 Réponses
+ 5
See how Values changing do dry run in copy you will understood.
9th Sep 2020, 3:53 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
//copy, paste and run this to understand(see how I and j are incremented inside the loop) #include <stdio.h> int main() { int i=0,j=0; while(i++<=3) { while(j++<=3) { } printf("i = %d\n",i); printf("j = %d\n",j); } printf("%d%d",i,j); return 0; }
9th Sep 2020, 2:48 PM
RKK
RKK - avatar