4. C++ Fundamentals
C++ Fundamentals
C++ is a general-purpose programming
language and is widely used nowadays for
competitive programming. It has imperative,
object-oriented and generic programming
features. C++ runs on lots of platforms like
Windows, Linux, Unix, Mac etc.
C++ is a general-purpose programming
language and is widely used nowadays for
competitive programming. It has imperative,
object-oriented and generic programming
features. C++ runs on lots of platforms like
Windows, Linux, Unix, Mac etc.
5. ADVANTAGES OF C++
1. Object-Oriented
2. Speed
3. Rich Library Support
4. Closer to Hardware
12. ● A variable name must start with a letter or an underscore character (_)
● A variable name cannot start with a digit
● A variable name can only contain alpha-numeric characters and underscores (a-
z, A-Z, 0-9, and _ )
● Variable names are case-sensitive (age, Age and AGE are three different
variables)
● A variable name cannot contain spaces
● The variable name cannot be any C++ keyword
● A variable name must start with a letter or an underscore character (_)
● A variable name cannot start with a digit
● A variable name can only contain alpha-numeric characters and underscores (a-
z, A-Z, 0-9, and _ )
● Variable names are case-sensitive (age, Age and AGE are three different
variables)
● A variable name cannot contain spaces
● The variable name cannot be any C++ keyword
NAMING RULES
NAMING RULES
28. ARRAYS
ARRAYS
In C++, an array is a
data structure that is
used to store multiple
values of similar data
types in a contiguous
memory location.
In C++, an array is a
data structure that is
used to store multiple
values of similar data
types in a contiguous
memory location.