Possible Duplicates:
Optional arguments in Objective-C 2.0?
Objective-C Default Argument Value
I'm writing a C function in Objective C. I want a default value for my last parameter.
I've tried:
foo(int a, int b, int c = 0);
but that's C++
I've also tried
foo(int a, int b, int c)
{
...
}
foo(int a, int b)
{
foo(a, b, 0);
}
But that's ALSO C++.
is there a way to do this in Objective C?