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
Common misconceptions about C (C95)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Eric Sosman, post: 3979142"] Misconception #3: There seems to be a misconception here, or at least a confusing statement. The variable arguments to a variadic functions are subject to "the default argument promotions," so saying that "implicit type conversions do not take place" is at best misleading. The first printf() call is not erroneous, but valid. Misconception #5: It *is* possible to use printf() "without including any header file," because printf() is a Standard library function that can be declared free-hand, without use of a Standard header (unlike fopen(), say). Of course, it's a dumb idea to write such a declaration -- but maintaining that it's impossible isn't right. Misconception #11: Might be positioned near #1 for greater effect and better continuity of exposition. Misconception #13: Might be combined with #12 for brevity's sake. "Brevity is the soul of wit," so if you can shrink something by half that makes you a ... General observation: There are quite a few misconceptions about C that you have not touched upon, like "An int has 32 bits" and "Pointers are faster than array indices" and "The size of a struct is the sum of the sizes of its elements." But rather than try to fill a long list, why not just refer people to the FAQ? Not meaning to be disrespectful, but what does this list do that the FAQ hasn't already done? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Common misconceptions about C (C95)
Top