I am bit confused, as my title mentioned,
Is id in Objective C is primitive data type? or Object type? I always thought that id is Object type as it is pointing towards an object.
So, Is it Object type or Primitive data type?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
idis declared in objc.h asso yes, I’d say it’s primitive (pointers are primitive types in C).