Vidyalelo
Computer Science · Q108

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 108

Q108

If you assign a default value to any variable in a function prototype's parameter list, then _____

A.
all other parameters in the function prototype must have default values
B.
all parameters to the right of that variable must have default values
Answer
C.
all parameters to the left of that variable must have default values
D.
no other parameters in that prototype can have default values

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board