I've just started on xcode today, so please excuse the total noob question here.
My code is:
NSString *name = @"";
int age = 0;
NSLog(@"What is your name?");
scanf("%s", &name);
NSLog(@"How old are you?");
scanf("%d", &age);
NSLog(@"Your name is %@ and you are %d", name, age);
And the output I get is:
Your name is 2001-01-01 00:00:00 +0000 and you are 29
As you can see, the string is not printing as expected. Please help???
Thank you in advance!