Can someone point out what is wrong with this small program it is similar to an example in book I am reading but I am getting a segment core dump? Thanks.
Code:struct football { int yards; int points; char team[30]; } nfl; void print_it(struct football new); int main() { printf("Who is your favorite team?\n"); scanf("%s", nfl.team); printf("How many points did they score?\n"); scanf("%d", nfl.points); printf("How many yards did they gain?\n"); scanf("%d", nfl.yards); print_it(nfl); return 0; } void print_it(struct football new) { printf("Your fav team is:%s They scored %d points Gained %d yards\n", new.team, new.points, new.yards); }


