I know BOOL is actually a typedef of signed char, but what about Boolean?
What is the difference between bool, Boolean and BOOL?
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.
Booleanis an old Carbon keyword (historic Mac type), defined as anunsigned char.BOOLis an Objective-C type defined assigned char.boolis a defined version of the_Boolstandard C type. It’s defined as anint. UseBOOL.Edit (2019): Apple talks about the underlying implementation of
BOOLin some new documentation. Basically, on macOS,BOOLis still ultimately asigned char, but on iOS and related platforms, it a native Cboolunderneath.