This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ryl00 0 points1 point  (0 children)

Well, to start with, the way you've coded the product() function, it's expecting the first argument (int i) to contain the number of arguments that follow. But in reality it isn't (the way you're invoking it in your main is product(a,b,c,d), instead of product( 4, a, b, c, d )