Constructs Treated Differently in C and C++

Because C++ is based on ISO/ANSI C, the two languages have many constructs in common. The use of some of these shared constructs differs.

 



Character Array Initialization
Character Constants
Class and typedef Names
Class and Scope Declarations
const Object Initialization
Definitions
Definitions within Return or Argument Types
Enumerator Type
Enumeration Type
Function Declarations
Functions with an Empty Argument List
Global Constant Linkage
Jump Statements
Keywords
main() Recursion
Names of Nested Classes
Pointers to void
Prototype Declarations
Return without Declared Value
__STDC__ Macro
typedefs in Class Declarations
Ellipsis and void