Alex
0
Q:

how to start infinite loop in c

//to start infinite loop set a variable that doesnt change
int flag=1;
while(flag==1)
{
	//enter code here
    //type condition for when you want to end loop
    	//type code
    	//change value of flag
        flag=2;
}
0

New to Communities?

Join the community