When will you use nsarray and nsmutablearray?
Answer / Chandra Bahadur
You'll use NSArray when you need an immutable array, like storing a constant set of values or returning a result from a method. Use NSMutableArray when you need to modify the contents of an array during runtime, such as adding new elements, removing existing ones, or changing their order.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is objective c deprecated?
What is parsing? Mention which class can you use for parsing of xml in iphone?
How to initialize nsmutabledictionary in objective c?
What is atomic property?
What does the m mean in xcode?
Is objective c still used?
Who calls dealloc method? Can we implement dealloc in arc?
What is the difference between weak and unowned?
Explain mutable types in objective c programming language?
How to restart app in objective c?
What is .m file in objective c?
What are nsautoreleasepool?