Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 21994

Is short circuit evaluation a language feature in C/C++ or compiler implementation

$
0
0

I'm wondering if short circuit evaluation of

long param = 0;if ( functAWithSideEffects(&param) || funcBWithSideEffects(&param) )

Can be relied on. For example, if funcAWithSideEffects returns true, will the compiler evaluation funcBWithSideEffects? Is short circuit evaluation a language feature or a compiler implementation detail?


Viewing all articles
Browse latest Browse all 21994

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>