The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
0 votes

Which one of the following is correct for overloaded functions in C++?

  1. Compiler sets up a separate function for every definition of the function.
  2. The compiler does not set up a separate function for every definition of the function.
  3. Overloaded functions cannot handle different types of objects.
  4. Overloaded functions cannot have the a same number of arguments.
asked in Others by Veteran (342k points) | 462 views

1 Answer

+1 vote
Best answer
When you call an overloaded function or operator, the compiler determines the most appropriate definition to use by comparing the argument types you used to call the function or operator with the parameter types specified in the definitions. The process of selecting the most appropriate overloaded function or operator is called overload resolution.

Ans: (A)
answered by Active (3.9k points)
selected by

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

35,518 questions
42,792 answers
42,162 users