McqMate
Q. |
Observe following function declaration and choose the best Ans:: int divide ( int a, int b = 2 ) |
A. | Variable b is of integer type and will always have value 2 |
B. | Variable a and b are of int type and the initial value of both variables is 2 |
C. | Variable b is international scope and will have value 2 |
D. | Variable b will have value 2 if not specified when calling function |
Answer» D. Variable b will have value 2 if not specified when calling function |
View all MCQs in
Object Oriented Programming with C++ (OOP in C++)No comments yet