+ 4

Can anyone explain the output?

int i=0; for(;i<4;i+=2){ i=i*i; } cout<<i%4; Output =2

15th Mar 2019, 4:26 PM
Shruti Bansal
Shruti Bansal - avatar
1 Resposta