how to pass multiple arguments in a single function in Objective-C? I want to pass 2 integer values and the return value is also integer. I want to use the new Objective-C synta
Like this:
int sum(int a, int b) { return a + b; }
Called like this:
int result; result = sum(3, 5); // result is now 8
More here