Search

Sponsored Links

Meta

Categories

Archives

Recent Posts

RSS Feeds

15
Mar

ANSI C Vs K&R C

Related Blog Items

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

No Comments

No comments yet.

Leave a comment

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image