Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Function syntax in Objective-C

Tags:

objective-c

Do all functions (as opposed to class/instance methods) in Objective-C use C syntax for both declaration and calling?

like image 460
Casebash Avatar asked May 17 '26 17:05

Casebash


1 Answers

well, it really is C. Objective-C is a superset of C, meaning that you can use any C construct you want and the compiler will handle it. Just declare C functions as you normally would, and call them as you normally would.

like image 173
D.C. Avatar answered May 19 '26 06:05

D.C.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!