diff --git a/content/cpp/.functions.md.swo b/content/cpp/.functions.md.swo new file mode 100644 index 0000000..53f57dd Binary files /dev/null and b/content/cpp/.functions.md.swo differ diff --git a/content/cpp/.functions.md.swp b/content/cpp/.functions.md.swp new file mode 100644 index 0000000..104131e Binary files /dev/null and b/content/cpp/.functions.md.swp differ diff --git a/content/cpp/functions.md b/content/cpp/functions.md index 8b38170..4f46aa5 100644 --- a/content/cpp/functions.md +++ b/content/cpp/functions.md @@ -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. + + + + + + + + + + + + + + + + + + + + + + + + + + + +