Thanks for the replies, a long gap for this post.
Make me clear on this thread concept as follows :
Suppose I have to store a string "testing app Performance with memory", at the runtime of the code in a class variable.
Then what would be fine to go with :
a) char *stringType="testing app Performance with memory"
(or)
b) NSString *stringType=@"testing app Performance with memory"
Which one would be much efficient to go with. AFAIK, going with char* would be memory efficient, as I don't need to use any uincodes for this string.
Note : For now leave the concept of alloc and malloc here.
Make me clear on this thread concept as follows :
Suppose I have to store a string "testing app Performance with memory", at the runtime of the code in a class variable.
Then what would be fine to go with :
a) char *stringType="testing app Performance with memory"
(or)
b) NSString *stringType=@"testing app Performance with memory"
Which one would be much efficient to go with. AFAIK, going with char* would be memory efficient, as I don't need to use any uincodes for this string.
Note : For now leave the concept of alloc and malloc here.