I'm programming in C/C++. In one of my programs i have the following:
#include <stdio.h>
unsigned long int var1, ... (other variables);
int main()
{
printf("blah blah blah");
scanf("%i",var1);
printf("blah blah blah");
....
return0;
}
....and Xcode says there's a problem with my scanf("%i",var1); function. The following window appears:
http://www.pix8.net/pro/pic.php?u=4652EIa7C&i=730160
http://www.pix8.net/pro/pic.php?u=4652EIa7C&i=730161
Does anybody know what the problem is?
#include <stdio.h>
unsigned long int var1, ... (other variables);
int main()
{
printf("blah blah blah");
scanf("%i",var1);
printf("blah blah blah");
....
return0;
}
....and Xcode says there's a problem with my scanf("%i",var1); function. The following window appears:
http://www.pix8.net/pro/pic.php?u=4652EIa7C&i=730160
http://www.pix8.net/pro/pic.php?u=4652EIa7C&i=730161
Does anybody know what the problem is?