#include <stdio.h>
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);//my error is Format specifies 'char*' but the argument has type 'char'
}
int main (int argc, const char * argv[])
{
congratulateStudent("Mark", "Cocoa", 5);
return 0;
}
How do I resolve this?

New Topic/Question
Reply


MultiQuote




|