Basketball scoreboard: add_point(&home) should give the home team 1 point. The function gets score, the address of home; add 1 through it. main calls it three times, so it should print Home: 3.
Home: 3
#include <stdio.h>
void add_point(int *score) {
// your code here: add 1 to the number score points to
}
int main(void) {
int home = 0;
add_point(&home);
add_point(&home);
add_point(&home);
printf("Home: %d\n", home);
return 0;
}
Run tries the examples. When they look right, Submit.