extremely simple question, just wanted to make sure of the answer. What would the code look like of you wanted to have a function prototype that declared two integers, one of which has a default value of 20?
Printable View
extremely simple question, just wanted to make sure of the answer. What would the code look like of you wanted to have a function prototype that declared two integers, one of which has a default value of 20?
ggCode:void foo(int a, int b = 20);
...
void foo(int a, int b/*=20*/)
{
...
}