how to make infinite loop in c
snippet in c

how to make infinite loop in c

user1343

while( true ) { }
for( ;; ) { }

// To stop the loop you can use the break keyword
// Like this
for( ;; )
{
	break; 
}

how to start infinite loop in c

user4661

//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;
}