Ellipsis is there consecutive period (.) with no
white space. With the help of ellipsis we can write a function of variable
number of parameter. For example:
#include
int number(int a,...){
return a;
}
int main() {
int i;
i=number(5,4,3,2,1);
printf("%d",i);
return 0;
}
Output: 5
Ellipsis can be
used as a variable number of parameters or a variable which
No comments:
Post a Comment