That's the error message that I get. The error points to
these two lines:
total=(w+x+y+z);
PrintResults (w+x, y+z, w+x+y+z);
or, more specifically, the second value in each clause (ie. the 'x' in w+x+y+z, the 'x' in w+x, the 'z' in y+z, and the 'x' in w+x+y+z).
Is it asking for an interger value or something else? These expressions worked before I changed the program to use call by reference. Thanks.
void calculateExpenses(int *w, int *x, int *y, int *z) { /* the function definition */
total=(w+x+y+z);
PrintResults (w+x, y+z, w+x+y+z);
}
void PrintResults(int t, int b, int tot){ /* the function definition */
printf("\n"
printf("Travelling Expenses for %s are %d\n", dest, &t);
printf("Boarding Expenses for %s are %d\n", dest, &b);
printf("\n"
printf("The total expenses for %s are %d\n", dest, &tot);
printf("\n"
}
these two lines:
total=(w+x+y+z);
PrintResults (w+x, y+z, w+x+y+z);
or, more specifically, the second value in each clause (ie. the 'x' in w+x+y+z, the 'x' in w+x, the 'z' in y+z, and the 'x' in w+x+y+z).
Is it asking for an interger value or something else? These expressions worked before I changed the program to use call by reference. Thanks.
void calculateExpenses(int *w, int *x, int *y, int *z) { /* the function definition */
total=(w+x+y+z);
PrintResults (w+x, y+z, w+x+y+z);
}
void PrintResults(int t, int b, int tot){ /* the function definition */
printf("\n"
printf("Travelling Expenses for %s are %d\n", dest, &t);
printf("Boarding Expenses for %s are %d\n", dest, &b);
printf("\n"
printf("The total expenses for %s are %d\n", dest, &tot);
printf("\n"
}