CS Electrical And Electronics
@cselectricalandelectronics

For the following declarations of sum functions, which of the function calls will be successful without errors?

All QuestionsCategory: Cpp LanguageFor the following declarations of sum functions, which of the function calls will be successful without errors?
Anonymous asked 3 years ago

int sum(int, int);
float sum(float, float);
int sum(int, int, int);
double sum(double, double)
 

  1. sum(10,20)
  2. sum(2,3,4,5)
  3. sum(10,2,3)

 
Options:
 

  1. 1 & 2
  2. 2 & 3
  3. 1 & 3
  4. All 1, 2, & 3