Keywords Flashcards
1
Q
Keywords
A
Set of 84 words reserved for c++
2
Q
C++ language
A
Keywords, special identifiers and set of operators
3
Q
Rules for naming identifiers
A
- can’t be keyword
- can be composed by letters, numbers and _
- can’t contain symbols and whitespace
- must start with letter or _, not numbers
- case sensitive
4
Q
Naming variables
A
Should begin with lowercase, and if it’s one word, whole should be lowercase
5
Q
Naming functions
A
Should begin with lowercase, if it has multiple words shold be separated by underscore, or the first letters of the second word should be capitilized
6
Q
Naming with underscores
A
Should be avoided, reserved for os library
7
Q
Identifiers
A
Should make it clear what the value they hold means
8
Q
Use comments
A
To clarify when variable holds lots of values