2. C ++ language features 2. C Language Features
1. Features of universal programming languages
Any common programming language has a set of common syntax features. Different Languages differ only in feature details. Therefore, to grasp a language, it is the first step to understand the implementation details of its syntax features.
The most basic features include:
<1>. built-in type
<2>. variable, used to name an object
<3>. Expression and statement, used to operate the specific values of the preceding data type.
<4>. if/while and other control statements, these statements allow us to selectively execute some statements or repeatedly execute some statements.
<5>. function, used to define the computing units that can be called at any time.
Most programming languages supplement their basic features in two ways: one is to grant programmers the right to customize data types, and the other is to encapsulate useful functions into library functions for programmers.
Ii. Notable features
(1). can define the class type that is as natural as the built-in type. (Built-in type: the type defined by the language itself, such as int .)
Iii. Features of C ++
C ++ is an extension of C language.