mjalexander64141 mjalexander64141
  • 14-07-2019
  • Computers and Technology
contestada

When a function uses a mixture of parameters with and without default arguments,

the parameters with default arguments must be defined _________.

Respuesta :

ExieFansler ExieFansler
  • 22-07-2019

Answer: after the required parameters.

Explanation:

Default arguments in a function should be defined after the required parameters because the required parameters are necessary but default arguments are not. If mixed parameters are allowed it will be very hard for the compiler to to judge which value matches which argument so there will be syntax error.

Answer Link

Otras preguntas

Cutting threads in a hole is a process called
__ is a family of data formats that helps people automatically receive feeds anytime there are new postings to their favorite blog sites, updates in the news he
How many digits of PI do you know. Give the numbers, be honest.
Melanie is 4 years old. When she is on the playground with her classmates she rarely plays organized games with rules and structure. Instead she and her friends
how were the practices of sharecropping and slavery similar
Approximately what wavelength of light is best absorbed by chlorophyll a, the pigment that participates directly in the light reactions?
Biomolecules biology help please
A parallel-plate capacitor has an area of 4.90 cm2 and the plates are separated by 0.500 mm. The capacitor stores a charge of 391.0 pC. What is the potential di
When keying a memo, the paragraphs should be ____.
In oxidative phosphorylation, electrons are passed from one electron carrier to another. The energy released is used to __________. a. generate large amounts of