Sample program for do-while loop in C:
What will be the output of this below program?
infinite loop and crash
compile time error
This is the do while logic to loop only once as while condition is not true. 0>0 is false. But since we are using do-while, logic inside it will be executed only once. output will be "anti virus!!".
Back To Top