15
Mar
ANSI C Vs K&R C
Related Blog Items
- ANSI C Reference Card
- Stdarg: Variable Arguments
- C++ Tutorial Part 2 - Advanced
- C++ Advanced Tutorial - Lesson 10
- Structure padding explained
There are three important differences between ANSI C and K&R C:
-
The first feature is the prototype - writing the parameter types as a part of the function declaration. Prototypes make it easy for a compiler to check function use with definition.
-
Second feature is the addition of new keywords -
- enum for enumerated types
- const
- volatile
- signed
- void
And the ‘entry’ keyword was retired.
-
Third category is of "silent changes" - some features that still compiles, but now has a slightly different meaning. For example, now that the preprocessing rules are more tightly defined, there’s a new rule that adjacent string literals are concatenated.
Popularity: 4%
You need to log on to convert this article into PDF
Related Blog Items - ANSI C Reference Card
- Stdarg: Variable Arguments
- C++ Tutorial Part 2 - Advanced
- C++ Advanced Tutorial - Lesson 10
- Structure padding explained
Related Blog Items
- ANSI C Reference Card
- Stdarg: Variable Arguments
- C++ Tutorial Part 2 - Advanced
- C++ Advanced Tutorial - Lesson 10
- Structure padding explained
No Comments
No comments yet.