Article View: comp.std.c
Article #4206order of execution with && and ||
From: Simon Harris
Date: Mon, 09 Oct 1995 14:34
Date: Mon, 09 Oct 1995 14:34
9 lines
618 bytes
618 bytes
What is the order of execution (resolution) for statements with && and ||? E.G. Given the following: if (ptr != (char *) 0 && *ptr == 'a') does this get resolved left to right? Regards, simon.
Technical Details
Message-ID:
<45bbtn$t8o@goanna.cs.rmit.EDU.AU>Path:
arc1-ca.pugleaf.net!goanna.cs.rmit.EDU.AU!yallara!s9511800Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!goanna.cs.rmit.EDU.AU!yallara!s9511800 From: s9511800@yallara.cs.rmit.edu.au (Simon Harris ) Newsgroups: comp.std.c Subject: order of execution with && and || Date: 9 Oct 1995 14:34:31 GMT Organization: Comp Sci, RMIT, Melbourne, Australia Message-ID: <45bbtn$t8o@goanna.cs.rmit.EDU.AU> NNTP-Posting-Host: yallara.cs.rmit.edu.au NNTP-Posting-User: s9511800 X-Newsreader: TIN [version 1.2 PL2]