question archive What is the difference between an argument and a return value?  How many arguments can a function call have?  

What is the difference between an argument and a return value?  How many arguments can a function call have?  

Subject:Computer SciencePrice:3.86 Bought8

What is the difference between an argument and a return value?  How many arguments can a function call have?

 

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Answer Preview

There are 3 main differences:

Arguments:

  • Arguments or parameter is what is input to a function.
  • There can be many arguments to a function.
  • There can be 0 arguments to invoke a function

Return value:

  • It is the value which the function returns.
  • There is only a single return value.
  • All functions have a return type ( even void is a return type)

 

The maximum number of arguments is 253 for a single function.

 

Related Questions