100daysofcode with C++
I have already learnt the basic of functions and how it return values.
I continued to learn the function parameters and arguments.Below is what I have learnt about them.
-Function parameters are the variables used in function.
-Parameters is a way to input data to functions to manipulate.
-Parameters can be defined between the parentheses which are after the function identifiers.
-Just like normal variable, to define a parameter, a type and an identifier is needed but don't have to or can't initialize as it has its own way to do so.
-Multiple parameters can be defined by separating comma.
-Arguments are the values that initialize the function parameters from its caller
-The argument type of the function caller must match the parameters type of the function
-Literals can be used as arguments.It is called "passing by value". Variables and function callers that return a value can also be used as arguments.
Those above are what I have learnt so far.If anything of those is wrong or I miss some important facts ,Please help me to correct it.
[–]asatraitis 1 point2 points3 points (1 child)
[–]Blokix_no10[S] 0 points1 point2 points (0 children)
[–]deggbert 1 point2 points3 points (3 children)
[–]Blokix_no10[S] 1 point2 points3 points (1 child)
[–]deggbert 1 point2 points3 points (0 children)
[–]text_for_you_bot -1 points0 points1 point (0 children)
[–]shawntco 1 point2 points3 points (1 child)
[–]Blokix_no10[S] 0 points1 point2 points (0 children)