Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
2 style questions
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Malcolm, post: 1693439"] It is a pain that if(x = 100) happens to be a legal C construct. Not all compilers warn about it. However if(100 = x) is much more difficult to read - like spelling a work backwards the effect of one such line is small, but the cumulative effect of many such features is to make reading code very difficult. if(CONST == x) lulls you into a false sense of security, because there can be no protection from if(N = i) (N and i both variables). [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
2 style questions
Top