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
+ 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.
+ 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.
+ 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.
+ 1
I think they are indicating that any number of arguments can be passed in the function.