Variadic function: Difference between revisions

Content deleted Content added
added objective c
Line 273: Line 273:
}
}


// This function can be called with any number or type of objects, as long as you terminate it with <code>nil</code>:
// This function can be called with any (positive) number or type of objects, as long as you terminate it with <code>nil</code>:
printAll(@"Rosetta", @"Code", @"Is", @"Awseome!", nil);
printAll(@"Rosetta", @"Code", @"Is", @"Awseome!", nil);
printAll([NSNumber numberWithInt:4],
printAll([NSNumber numberWithInt:4],