Ok, I feel even stupider then I did before I am stuck on the quiz for lesson 4 tutorial:
1. Which is not a proper prototype?
A. int funct(char x, char y);
B. double funct(char x)
C. void funct();
D. char x();
2. What is the return type of the function with prototype: "int func(char x, float v, double t);"
A. char
B. int
C. float
D. double
3. Which of the following is a valid function call (assuming the function exists)?
A. funct;
B. funct x, y;
C. funct();
D. int funct();
4. Which of the following is a complete function?
A. int funct();
B. int funct(int x) {return x=x+1;}
C. void funct(int) {cout<<"Hello"}
D. void funct(x) {cout<<"Hello"}
The ones that are bold I am confused on. The answer to number one is B and the answer to 3 is C. But Why!? Why isn't one's answer D? I thought if you had nothing in the parenthesis then you had to have void!? And for number three, I'm just confused! Please help me I can't go on knowing I don't know something