updated cpp/functions.md
This commit is contained in:
@@ -72,5 +72,37 @@ Rules for modifying function signatures:
|
||||
5. Introducing default arguments
|
||||
- __Does not change signature_
|
||||
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