954,505 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Functions Parameters

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

Justmehere
Newbie Poster
14 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

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

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

Many thanks Ancient Dragon thats what I was looking for.

Justmehere
Newbie Poster
14 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You