This is a very basic question, so please bear with me.
Consider the following function in C++:
void foo(int a, int b, int c)
{
//do something
}
can I call this function like this: foo(b=2, c=3, a=2) ?
I suppose this have some sort of name (positional parameters, possibly). If you could clarify it in the answer too, it would great.
Not in standard C++, no. You’ll have to provide the parameters in the order specified by the function prototype.