| delorie.com/archives/browse.cgi | search |
| From: | Teemu Ikonen <cfikonte AT taltta DOT lpr DOT carel DOT fi> |
| 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: | <Pine.HPP.3.90.970807153336.3441A-100000@taltta.lpr.carel.fi> |
| References: | <5sbb1h$kvr$1 AT newton DOT pacific DOT net DOT sg> |
| NNTP-Posting-Host: | taltta.lpr.carel.fi |
| Mime-Version: | 1.0 |
| In-Reply-To: | <5sbb1h$kvr$1@newton.pacific.net.sg> |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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_ /_/_/\/\/\/\/\/\/\/\/\/_--__--_____--__
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |