From: Teemu Ikonen Newsgroups: comp.os.msdos.djgpp Subject: Re: [Q] expression evaluation order Date: Thu, 7 Aug 1997 15:38:07 +0300 (EST) Organization: Carelcomp Forest Oy Lines: 17 Message-ID: References: <5sbb1h$kvr$1 AT newton DOT pacific DOT net DOT sg> NNTP-Posting-Host: taltta.lpr.carel.fi Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <5sbb1h$kvr$1@newton.pacific.net.sg> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Thu, 7 Aug 1997, Victor wrote: > Is it safe to assume that the expression > > if(first_function()==OK && second_function()==OK && > third_function()==OK) return(OK); > > will be evaluated from left to right? Theoretically no, in practise it could work. Teemu Ikonen _ /\/\/\/\/\/\/\/\/\/\/\/\ -- -- tikonen AT niksula DOT cs DOT hut DOT fi /o\___O \ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\ -- www.hut.fi/~tikonen________\_o____O_ /_/_/\/\/\/\/\/\/\/\/\/_--__--_____--__