|
-
May 8th, 2007, 06:33 AM
#1
do while loops with &&
Hi,
Can I do something like this:
X *pX;
do
{
//.....
}while((pX != NULL) && (pX->func() >2))
I mean can I be sure that the left condition pX!= NULL, will be checked before the right condition (pX->func() >2), hence if the right condition will be checked only if the left condition is true?
Thanks
Avi123
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|