Hello. 1st timer and super newbie with programming here.
I’m trying to print the NSInteger and NSUInteger as shown in the book but the build fails for me to check the result with print().
Am I missing something here?
int main(int argc, const char * argv)
NSInteger x = -5; NSUInteger y = 6; printf("Here they are: %ld, %lu", (long)x, (unsigned long)y); return 0;
Build for above will fail with
"! Use of undeclared identifier ‘NSInteger’"
"! Use of undeclared identifier ‘NSUInteger’"
"! Use of undeclared identifier ‘X’"
I tried adding “#include <unistd.h>” to the main.c but that didn’t help.
If someone could help me out I would greatly appreciate it.
Thank you very much in advance.