Calling Functions

Hey I really need some help with studying for a Computer Science exam that's tomorrow. I know how to do loops, functions, etc but there's a section on one of our pretests that I don't really understand. If you could help me out that would be really great. I don't expect you to answer all of them but if you see a couple that you could do I would really appreciate it. Thanks you

For each of the following function prototypes, which of the calls are syntactically correct and incorrect, and a short sentence explaining why?

//Variable Declarations
int A,B,C;
float X,Y;
char Char;

//Function Prototypes
int Maximum(const int Num1,const int Num2);
void Total(const float A,const float B,float&C);
char GetChar();


1. Maximum(A,B);
2. A=Maximum(7,3);
3. A= Maximum(Num1,Num2);
4. Total(A,B,C);
5. Total(3.0,X,Y);
6. Total(3.0,5.0,8.0);
7. Total(Y,X,Y);
8. GetChar(Char);
9. Char= GetChar();

Yeah I've looked and still dont know some of them
closed account (S6k9GNh0)
List the ones you don't understand and explain why you don't understand them.
Topic archived. No new replies allowed.