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

Predict what the MASS would be of something exerting a force of 45N on a spring scale. EXPLAIN how you got your answer.
what is the rate and ratio of 420 miles in 7 hours
Simplify the given expression: (6 + 2i) − (8 − 3i)
Name three fractions whose decimal equivalent is 0.40.draw a picture if it helps you explains
When a plant grows, its mass increases over time. Does this mean that new matter is created? Why or why not?
How do i write 98.5 in scientific notation?
Suppose that x and y are related by the equation 2x^2-y^2=5 and use implicit differentation to determine dy/dx.
Most of Africa's economies are best described as primary, secondary, tertiary or quaternary?
What are the physical features of Africa below the equator?
Help me solve for U please help