Maria wrote a function that has a default argument. She noticed that sometimes it uses the default value, while other times it uses the value she provides. What could be the possible reason for this behavior?

  • Compilation Error
  • Compiler Optimization
  • Incorrect Function Call
  • Incorrect Function Definition
The possible reason for Maria's function sometimes using the default value and other times using the value she provides is an Incorrect Function Call. If she calls the function without providing an argument for the parameter with the default value, it will use the default value. However, if she explicitly provides an argument, the provided value will be used.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *