0

int i=0,j=0; { do i++; j++; } while (i=j);

find output and explain

3rd Aug 2017, 1:37 PM
Prawin Kumar
Prawin Kumar - avatar
3 ответов
+ 7
Error, not { do, but do {
3rd Aug 2017, 1:41 PM
The Coding Sloth
The Coding Sloth - avatar
+ 4
Your syntax is off. Also, it's an infinite loop.
3rd Aug 2017, 1:41 PM
Keto Z
Keto Z - avatar
+ 2
while (i=j) it assign the value of i to the value of j i think you want while (i==j)
3rd Aug 2017, 3:23 PM
Sylver
Sylver - avatar