updated cpp/functions.md

This commit is contained in:
2026-03-09 14:37:00 -05:00
parent 4ab2f02b7d
commit 8ca7d28b8e
3 changed files with 32 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -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.