Hey all, first post on the forum. I browsed the other topics and didn’t see a post about this, so here goes.
I am confused on two little details pertaining to when you first write ClassCertificates project (page 28 in my book, before you add “sleep(2)” to project).
void congradulateStudent (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);
int main(int argc, const char * argv)
congradulateStudent(“Aaron”, “iOS”, 7);
congradulateStudent(“Matt”, “Ruby on Rails”, 5);
Q1: Why is there no pointer on numDays to int in my first line of code? but there is to both chars preceding it.
- It still seems to work when I use int *numDays but I get more warnings.
Q2: why is there no " " required on the numbers within congradulateStudent? i.e. 7 and 5 in my project. Also when I add parenthesis to “7” and “5”, I get 3887 days and 3908 days instead of 7 and 5 days. Any idea where these numbers in the 3,000’s come from?