Can anyone tell me if its possible to declare a function and use it with multi parameters with the special character like "..." as part of the parameter list. I'm not intested in function overloading. What is the ... used for then if I'm incorrect on its useage ?

Thanks in advance

Recommended Answers

All 2 Replies

The ... indicates a variable number of arguments follow, such as printf(const char* format, ...); See the example here

Many thanks Ancient Dragon thats what I was looking for.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.