What does it mean for type n parameter n? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What does it mean for type n parameter n?

3rd Apr 2018, 10:34 PM
Chad and Calebs Adventures
Chad and Calebs Adventures - avatar
7 Answers
+ 1
typeN is the data-type of the parameter parN. And <return type> is the type of the value that the function should return. If a function returns not a very big number, you could use the "int" data type as the return type.
3rd Apr 2018, 10:55 PM
Bebida Roja
Bebida Roja - avatar
0
wat
3rd Apr 2018, 10:49 PM
Bebida Roja
Bebida Roja - avatar
0
<return type> name(type1 par1, type2 par2, … , typeN parN) { List of statements }
3rd Apr 2018, 10:49 PM
Chad and Calebs Adventures
Chad and Calebs Adventures - avatar
0
typeN parN
3rd Apr 2018, 10:50 PM
Chad and Calebs Adventures
Chad and Calebs Adventures - avatar
0
just wondering what that represents
3rd Apr 2018, 10:50 PM
Chad and Calebs Adventures
Chad and Calebs Adventures - avatar
0
type null?
3rd Apr 2018, 10:50 PM
Chad and Calebs Adventures
Chad and Calebs Adventures - avatar
0
ok I was just confused because it starts with numerics and when it goes to alpha characters it starts with n not a and it threw me off.
3rd Apr 2018, 10:57 PM
Chad and Calebs Adventures
Chad and Calebs Adventures - avatar