current position:Home>Why is it an endless loop? And what does I + + in printf mean

Why is it an endless loop? And what does I + + in printf mean

2022-02-03 01:22:14 CSDN Q & A

int i=1;
while(i=10)
printf("%d",i++);




Refer to the answer 1:

An equal sign is missing .

int i=1;while(i==10)printf("%d",i++);



Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030122132645.html

Random recommended