Quantcast
Channel: Renesas Synergy Platform
Viewing all articles
Browse latest Browse all 23645

Forum Post: RE: Coding style question

$
0
0
GCC at least flags things like while(a=b) as suspicious. Most of the time what you mean is while(a==b) so in this particular compiler this coding construct of (expression opr Lvalue) is of less utility in preventing typo problems. so when I actually mean while(a=b) I get forced to write it while((a=b) != 0) which is probably better coding practice but not idiomatic C.

Viewing all articles
Browse latest Browse all 23645


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