Showing posts with label tricky while loop. Show all posts
Showing posts with label tricky while loop. Show all posts

20120118

How to use tricky while loop in CPP,C++,C

#include<stdio.h>
int main()
{
int i=0;
while(i<5)
        {
        printf("\n Iteration No=%d",i);
        }
return 0;
}
////////////////////
o/p = infinite times Iteration No=0 as we are not incrementing the i
///////////////////