In C++, function overloading allows multiple functions to have the same name but with different ________.
- parameters
- return types
- function names
- access specifiers
The correct answer is return types. In C++, function overloading is when you have multiple functions with the same name but differing in their parameter types or the number of parameters. However, their return types must be different to distinguish them. The other options are not relevant to function overloading.
Loading...
Related Quiz
- The function ________ can be used to determine the size of a file in C.
- The ________ statement is used to skip the rest of the loop's body and continue with the next iteration.
- The ________ sorting algorithm repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.
- A two-dimensional array can be visualized as a ________.
- In a program that processes large datasets, you notice that reading the data from a file is a performance bottleneck. Which file handling functions could help improve the performance?