What does ... mean in a c function definition -
#include<stdio.h> void ff(const char *format,...) { printf("hr"); } int main() { ff("d","c"); }
i want know meaning of const char *format,... in declaration of ff function. moreover, ff function can called passing 1 argument, 2 arguments , n arguments. how function call working?
const char *format
declares parameter pointer character , can not changed. normal way of passing strings in c
.
the ...
declaration of variable arguments, says there more arguments function, don't know how many or of type be. see http://www.tutorialspoint.com/cprogramming/c_variable_arguments.htm introduction variable arguments.
Comments
Post a Comment