Anyone know why I can't pass the structure to the function this way????
Code:#include <stdio.h> #include <string.h> void diplay_jock(athlete players) { printf("%s %s is ranked %d and earns %.2f\n", players.last_name, players.first_name, players.rank, players.salary); } int main (void) { struct athlete { char last_name[25]; char first_name [20]; int rank; float salary; } players = {"Kloc", "Daniel", 2, 100000}; display_jock(players); return 0; }