0

How the result is 20?

What is the output of this code? int i = 0; for (; i < 5; i += 4) { i = i * i; } printf ("%d", i);

8th Jun 2021, 1:28 AM
Soharab Uddin Mondal
Soharab Uddin Mondal - avatar
2 odpowiedzi
+ 6
i = 0 i = 0*0 = 0 i += 4 = 4 i = 4 * 4 = 16 i += 4 = 20 print => 20
8th Jun 2021, 1:37 AM
durian
durian - avatar