I see a lot of statements like:
while (var != 0) {
but isn't this equivalent to:
while (var) { ?
Is there a reason why people often use the first form?
Thanks
I see a lot of statements like:
while (var != 0) {
but isn't this equivalent to:
while (var) { ?
Is there a reason why people often use the first form?
Thanks
Can the admin please move this thread to C Programming forum.
Thanks
*thread moved*
It may be clearer, depending on the situation.Originally Posted by manxmog
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
HOPE YOU UNDERSTAND.......
By associating with wise people you will become wise yourself
It's fine to celebrate success but it is more important to heed the lessons of failure
We've got to put a lot of money into changing behavior
PC specifications- 512MB RAM, Windows XP sp3, 2.79 GHz pentium D.
IDE- Microsoft Visual Studio 2008 Express Edition