What is the difference between string and nsstring?
Answer / Parvez Aalam
In Objective-C, both String and NSString are used to represent text. However, they have some differences:n1. String: It is a C-based Foundation framework class, which is not object-oriented and has no methods or properties for common string operations like length, substring, etc. On the other hand, it is more efficient due to being C based.n2. NSString: It is an Objective-C runtime class, which provides many useful string handling capabilities such as conversion, comparison, searching, and mutation. However, it is less efficient than String because it is object-oriented.
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell us the result when you invoke a particular method on a nil pointer?
What are some of the major differences between objective c and swift?
What is m script in matlab?
What does r mean in xcode?
Is objective c still used?
What is a class in xcode?
What are the rules of variable?
What is super in objective c?
How to sort array of dictionary in objective c?
What is meant by not thread safe?
Who invented objective c?
What is id?