+ 1
While Loop Doubt in C
char ch=120; //Range : [-128,127] while(++ch) { printf("%d\t",ch); } In this program, The loop stops after the character value get zero can anyone explain?
3 Answers
+ 3
Thanks!
0
Ujwal Sai Simha Y
đwhile(any non-zero integer)
{// loop runs }
đwhile(0)
{// loop does not run}