I'm writing a program that will take three test scores of a student whose name has been inputted by the user and that number will be divided by 3, finding the average.
My problem isn't working, well when I gcc my proyect I get a lot of warnings. May someone revise my code please. Thank you so much I appreciate your help.
#define addr(var) &var
#define REPORTHEADING1 "Student T1 T2 T3 Avg\n"
#define REPORTHEADING2 "======= == == == ===\n"
#define REPORTFORMAT "%-10s%3d%7d%7d%8.2f\n"
#define BLANK2LINES "\n\n"
void InputStudentInfo(char *fn, char *ln, char fullName);
int main (void)
int t1,t2, t3;
InputStudentInfo(lastname, firstname, combinedName);
printf("Enter the student's three(3) test scores seperate with space ");
printf(REPORTFORMAT, combinedName, t1, t1, t3, avg);
void InputStudentInfor(char *fn, char *ln, char fullName)
printf("Enter the student's first name");
printf("Enter the student's last name");