billyneedshelp9578 billyneedshelp9578
  • 15-08-2019
  • Computers and Technology
contestada

Look at the following function prototype. double mynewFunction(int); What is the data type of the function’s return variable?
a.double
b.string
c.void
d.int

Respuesta :

cdw2014
cdw2014 cdw2014
  • 15-08-2019
The answer is A) Double.

The return type is specified before the method's signature, and the signature is composed of the the method's name and parameters.

In this case, the method is named mynewFunction, takes in an integer as a parameter, and returns a double.

Also, fun fact which is kind of unrelated: if two or more methods have the same name, they can have different functionality as long as their signature is different (different parameter types).
Answer Link

Otras preguntas

Why do divers jump from behind into the water?​
Please give reasoning. Thank you
How did the people of ancient Greece originally experience the Odyssey? In what format was the story told?
The slope of a line is -1/5 and the y intercept is 5. What is the equation of the line written in slope-intersept form?
Song suggestions ? any songs
What was the primary reason why the 9/11 tragedy had unique relevance for Oklahomans? a More Oklahomans died in the 9/11 attacks than people from other states.
Please give reasoning. Thank you
This is the gas produced as a product of photosynthesis oxygen* Carbon dioxide Photosynthesis Light energy
If the simple interest on ​$1,000 for 7 years is ​$350​, then what is the interest​ rate?
What is the significance of the image of Rosie the Riveter?