I've always wondered where a single function such as
printf(); can take in variable parameters and provide the right results. For example,
printf("Number is %d",a);
which has two parameters, and
printf("Numbers are %d and %d",a,b);
which has three variables. So, is there any possibilities for creating a user-defined function like these functions in C? If so, how can i do it? Thanks in advance.