New course! Every coder should learn Generative AI!
Try a free lesson0
How does this output 20?
int i=0; for(;i<5; i+=4)i=i*i; printf("%d", i);
1 Answer
+ 2
for i = 0;
i=0*0 = 0;
i+=4 = 4;
4<5 => True
for i = 4;
i=4*4 = 16;
i+=4 = 20;
20<5 => False