I'm reading the book "Objective-C Programming The Big Nerd Ranch Guide"
.
They give out this code:
void congratulateStudent(char student, char course, int numDays)
{
printf("%s has done as much %s Programming as I could fit into %d days.\n", student, course, numDays);
}
and call it with this:
congratulateStudent("Mark", "Cocoa", 5);
This gives me this warning:
Format specifies type 'char *' but the argument has type 'char'
Is the book wrong?