diff --git a/notes/cpp.php b/notes/cpp.php
index ae36c54..3245371 100644
--- a/notes/cpp.php
+++ b/notes/cpp.php
@@ -338,10 +338,12 @@
This means that if a is greater than b, assign x with 1. If a is not greater than b, assign x with 0. The ternary operator however needs the values in the if and else part to be of the same type. If they are not, the program will fail to compile.
x = (a > b) ? 1 : 0;
- A function is a wrapper to easily reuse code and improve readability of your program. The function signature contains the return type, the identifier of the function, and the parameters that the function requires. The function contains statements within the curly braces. Finally, the function returns a value which has a type indicated in the function signature.
+ A function is a wrapper to easily reuse code and improve readability of your program. The function signature contains the return type, the identifier of the function, and the parameters that the function requires. The function contains statements within the curly braces. Finally, the function returns a value which has a type indicated in the function signature. Proper functions also have one intended use. If a function contains more than one use, it is a good idea to split them up.
+ Functions must be defined before they are called. That is, the definition must come before any reference to using the function. A function call is done by referencing the name of the function as a statement. For example type name (parameters) {...}my_function(1,2,3); is a call to my_function(int a, int b, int c) {...} with the parameter values a = 1, b = 2, c = 3.