What is the point of external parameters? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the point of external parameters?

12th Jul 2016, 11:40 PM
Arturo Arena
Arturo Arena - avatar
2 Answers
0
they will used in every function. they are also called global functions example: if you have int main(){int a = 10} a+=10; court << a << endl; there will be an error saying a not declared. the only way to do that is a reference tough
15th Jul 2016, 4:52 PM
oktay karakiya
oktay karakiya - avatar
0
external parameter names are the ones that are used when calling an argument of that function. in swift, except for the first parameter(when the function has multiple parameters) it is mandatory to use external parameter names. this is because usually the first parameter is indicated by the function name itself.
17th Jul 2016, 12:04 PM
Pink man
Pink man - avatar