Mega Code Archive

 
Categories / C Tutorial / Statement
 

Omit all three parts in for loop

#include <stdio.h> int main() {     printf("~ to exit");     for(;;)     {         char ch=getchar();         if(ch=='~')         {             break;         }     } } ~ to exit123 ~