What is the difference between typedef and enum?
Answer / Shubhansi
"In Objective-C, a `typedef` allows you to define a new name for an existing data type. An `enum` defines a new custom data type consisting of a set of named integer constants. For example:nn```objective-cntypedef NSInteger MyInt; // typedef for NSIntegernenum MyColors { Red, Green, Blue }; // enum for colors
| Is This Answer Correct ? | 0 Yes | 0 No |
How do I open .am files?
Is there function overloading in objective-c?
What are the classifications of property?
Is objective c statically typed?
What is the difference between #import and #include in objective-c?
Why we use synthesize in objective c?
What is an extension?
What is nsarray objective c?
How do you add a category in objective c?
Is objective c better than c++?
What is the difference between method and type?
What are the 5 principles of object oriented programming?