I am trying to create a simple integer variable and can’t get it to accept a value.
Why does the NSLog print out i=(null)?
int i;
i = 0;
NSLog(@"i=%@", i);
How do I create a simple index for an array?….
Thank you…
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.
You are creating the integer just fine, the problem is you cannot output it like that.
%@ is used to output objective c objects, not simple c types.
try: