I am trying to learn Objective-C and the book i am learning from presents some code for me to type into Xcode. I keep receiving warnings on the scanf
function for incorrect format specifiers even though this is how it is typed in the book. The code is as follows
@autoreleasepool {
double value1 = 0.0, value2 = 0.0;
char operator = '\0';
scanf("%lf %c %lf", value1, operator, value2);
}