0

While (57) printf("hello");

in above statement in c find the result

1st Jun 2018, 4:01 PM
Tanmai Swaroop
Tanmai Swaroop - avatar
4 odpowiedzi
+ 2
infinite loop printing hello
1st Jun 2018, 4:04 PM
‎ ‏‏‎Anonymous Guy
+ 1
Infinite. 0=False, but everything above 0 is not false. So because 57>0=True, the loop is while(True) and the True is never altered, so it's an infinite loop printing Hello to the screen.
1st Jun 2018, 4:15 PM
Paul Grasser
Paul Grasser - avatar
0
In any case: while(a) where a!=0, an operation is infinitely execute... and this is why all embedded C programs consist of while(a); which is also known as superloop...
1st Jun 2018, 5:04 PM
Prasanta Roy Choudhury
Prasanta Roy Choudhury - avatar