Here is a function declaration with default arguments:
void func(int a = 1,int b = 1,...,int x = 1)
How can avoid calling func(1,1,...,2)
when I only want to set the x
parameter and for the rest with the previous default params?
For example, just like func(paramx = 2, others = default)
x
, you have to provide everything prior. – Munitions