English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how many times does teh loop print "once"?

do{
cout<<"\n once";
}while(0)



also...................wat does while (0) mean???? usually there is a comparision statement in "while "..............wat does "0" imply?


please expalin too.

2007-03-01 03:05:38 · 4 answers · asked by book lover 1 in Education & Reference Homework Help

4 answers

Once. while(0) is false; it will output "once" and the test will fail and the next statement will execute.

the thing in the while is evaluated as 0/non-zero. 0 = false.

2007-03-01 03:20:28 · answer #1 · answered by Meg W 5 · 1 0

It does not do anything......check your zpelling.

The 0 is about the 1 or 0, false or true statement.

2007-03-01 03:16:30 · answer #2 · answered by Puppy Zwolle 7 · 0 1

once

2007-03-01 03:09:04 · answer #3 · answered by charles h 4 · 0 0

i didn't nderstand the question

2007-03-01 03:23:19 · answer #4 · answered by dna_lih 2 · 0 0

fedest.com, questions and answers