New course! Every coder should learn Generative AI!
Try a free lesson0
Can we use do-while as dummy loop
Like int i=10; While(i); { i--; }
3 Answers
+ 2
int i=10;
do{
i--;
} while (i);
0
Why not just like this though:
while(i--);
0
example
int i=12;
do{
i++;
} while (i);