The non-template functions can be added with default arguments to already declared functions ____________________

The non-template functions can be added with default arguments to already declared functions ____________________
A. If and only if the function is declared again in the same scope
B. If and only if the function is declared only once in the same scope
C. If and only if the function is declared in different scope
D. If and only if the function is declared twice in the program
 
Answer: a
Explanation: The non-template functions can also be added with default arguments. This can be done even if the functions were defined earlier. This is because the call to the function won’t be affected. The function can still be used in the same way as it was used earlier.
 

Tìm kiếm

Back
Top