0

In c++

Explain this code main() { for(;0;) { printf("hello"); } } Output in TC++ ??

26th Apr 2021, 3:32 PM
Abhishek
Abhishek - avatar
2 Réponses
+ 1
Hey abhishek bairwa 0 means false condition for "for" loop , so loop terminates "hello" cannot be printed !
26th Apr 2021, 3:36 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar