Search code examples
cargumentsdefault-parameters

C default arguments


Is there a way to specify default arguments to a function in C?


Solution

  • Not really. The only way would be to write a varargs function and manually fill in default values for arguments which the caller doesn't pass.