What can’t we put into an array or dictionary?
Answer / Pranaw Kumara
In Objective-C, you cannot add non-object types such as primitive data types (like int, char, float) directly into arrays or dictionaries. To use these types, you would typically wrap them in NSNumber objects before adding to collections.
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you mean by @synthesize and @dynamic in the objective-c?
What is protocol with example?
Explain the difference between #import and #include in objective-c?
What is a function file?
What is the difference between nsstring and string?
Can objective c run on windows?
Is reference counting garbage collection?
What does the m mean in xcode?
What is the purpose of the protocol?
What is difference between mutable and immutable?
How messaging works in objective-c?
Can a protocol have properties?