Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9
There is nothing related to array manipulation. The function "fun()" is just displaying the first argument that it receives. In first case it is 3 And in other it is 5
14th Aug 2020, 10:11 AM
Arsenic
Arsenic - avatar
+ 4
They are just to signify that function defination is complete. Nothing related to programming, it's just that the one who wrote the question want you to only focus on the first parameter and others are irrelevant.
14th Aug 2020, 10:17 AM
Arsenic
Arsenic - avatar
+ 4
AteFish🇧🇩 you are right but you are not passing an array here, you are just passing a lot of individual arguments to a function.
14th Aug 2020, 10:23 AM
Arsenic
Arsenic - avatar
+ 2
The first one returns 3 and the second one returns 5. Without the std::endl it looks like 35 but it isn't. They are 2 different numbers.
14th Aug 2020, 10:13 AM
MSN
MSN - avatar
+ 1
I think they are indicating that any number of arguments can be passed in the function.
14th Aug 2020, 10:17 AM
MSN
MSN - avatar