I am new to Objective-C and i wonder why this method compiles, can anyone explain me why?
Thank you
-(BOOL) isEnabled{
return 56;
}
A BOOL
in Objective-C is a typedef
of signed char
. Since 56
fits in that type, the implicit conversion from a literal int
results in no data loss.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With