Skip to main content

Command Palette

Search for a command to run...

Ellipsis ...

Published
•1 min read•View as Markdown

An ellipsis ... is used to represent a variable number of parameters to a function.

Program:

void function(int arg1, ...){
    printf("The argument is : %d", arg1);
}
int main(){
    function(1,2,3);
    function(2,5,7,7,9);
}

Output:

13 views

More from this blog

P

Programming Tutorials

89 posts