Alex Rivera | Logout

passing variable number of arguments

Asked 2010-10-01T03:01:31.560
9

Can we pass variable number of arguments to a function in c?

Edit
Report

1 Answer

0

make sure that the variable argument list should always be at the end of the argument list

example: void func(float a, int b, ...) is correct

but void func(float a, ..., int b) is not valid

answered 2010-10-01T05:58:59.490

Your Answer