the parameter which is to be passed in the function is to be declared first? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

the parameter which is to be passed in the function is to be declared first?

12th Jul 2016, 5:36 PM
Chowderpally Saiteja
Chowderpally Saiteja - avatar
2 Answers
+ 4
No. Defining the function is enough. And it's the arguments that you pass to the function after you invoke it.
12th Jul 2016, 7:29 PM
ZinC
ZinC - avatar
0
if you want use locally, no, only in the function, but, if you want use globally data, you can declare before the function.
26th Oct 2016, 2:06 AM
Carlos Alberto Carvajal