updated cpp/functions.md
This commit is contained in:
BIN
content/cpp/.functions.md.swo
Normal file
BIN
content/cpp/.functions.md.swo
Normal file
Binary file not shown.
BIN
content/cpp/.functions.md.swp
Normal file
BIN
content/cpp/.functions.md.swp
Normal file
Binary file not shown.
@@ -72,5 +72,37 @@ Rules for modifying function signatures:
|
|||||||
5. Introducing default arguments
|
5. Introducing default arguments
|
||||||
- __Does not change signature_
|
- __Does not change signature_
|
||||||
6. Modifying return types
|
6. Modifying return types
|
||||||
|
|
||||||
|
## Static Variables
|
||||||
|
|
||||||
|
Appending the static type to a variable declares to the compiler to only initialize the variable once. Usually, every time the function is called, the local variable gets created. The static keyword stops this behavior.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user