+ 1
What happens if we we use while(-1)
Does the condition execute or not
4 Answers
+ 5
Why don't you try using it and see what happens
0
iirc anything that isn't 0 is true, so it should execute. you should run the code and check it yourself though
0
Koushik Naskar Thanks brother.. I was having my personal interview in a few mins when I asked this question.. Your answer really helped.. In those 5 mins I wrote a mf code and ran it.. -_-
0
hinanawi Thank you so much.. Your answer helped me..