470 views
while(0) how many times a loop run
by

1 Answer

0 votes
A while(0) loop will run zero times because the condition 0 evaluates to false in programming languages where 0 is interpreted as false and any non-zero value as true.So the loop body never executes.
by (242k points)

Related questions

1 answer
585 views
0 answers
282 views
asked Mar 3, 2021 by asklent032021 (50.5k points)
0 answers
257 views
0 answers
243 views
asked Dec 20, 2020 by anonymous
1 answer
432 views
asked Sep 18, 2020 by anonymous
0 answers
239 views
asked Oct 8, 2021 by Asklent092021 (12.1k points)
1 answer
660 views
0 answers
230 views
0 answers
296 views
1 answer
357 views

Free Online Question and Answer Website

Are you curious? Get answers to your questions online. Share and spread your know-how through the best question and answer English Website. Join the free question-answer site today. Ask thought-provoking questions and get the answers from the experts. Select and choose topics of your choice. Create or join your own community.

Ask your question with your name or go anonymous. Become street smarter and join hands with likeable people.
Ask us any question and get instant help. You can learn and know anything about this platform.

The best answers will get a vote-up. Don't wait and sign up now? Explore a wide range of different questions and answers. Active users and regular readers will get benefited and also help us grow.

For any little concern, we are here. Get a quick fix answer for all your questions. We are happy to share. Asklent is a platform for helping each other.