Overloading and recursion look similar. Both situations call functions with the same name. Explain the difference.

What will be an ideal response?


In C++ overloading is based on the signature of the function: the function name and the sequence of types of the arguments. If the name is the same, but the signature is different, differing implementations are permitted.
In recursion, it is this function that is being called, with the exact same signature, not some other function having the same name, but a different signature as in function name overloading.

Computer Science & Information Technology

You might also like to view...

Which of the following companies offer home-based routers with built-in firewalls?

A) Net gear B) Belkin C) Linksys D) All of the above

Computer Science & Information Technology

In the accompanying figure, this pattern of ellipses was most likely created using the ____.

A. Move dialog box B. drag and drop feature C. Transform Again command D. Rotate tool

Computer Science & Information Technology

32-bit Windows XP editions allocate each process a ________GB virtual address space of which ________GB are reserved as system space.

a) 4; 1 b) 4; 2 c) 6; 3 d) 16; 2

Computer Science & Information Technology

By default, records in a table or query are sorted by the foreign key field

Indicate whether the statement is true or false

Computer Science & Information Technology