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

What did Pol Pot mean when he declared, "This is Year Zero"? Describe how Cambodian society was "purified". (Site 2) Will give brainiest
Tangshan Mining Company must choose its optimal capital structure. Currently, the firm has a 40 percent debt ratio and the firm expects to generate a dividend n
What on earth is this :/
1 pts Which of the following compounds has the highest boiling point at room temperature? O Ne ОН20 ОСНЫ ОСНСІ
. What type of peace was proposed in the “Peace Without Victory” speech?
Help me please and no links
CAN SOMEONE PLEASE HELP ME
How many ventricles does the heart contain?
A map titled Italian Peninsula. A key shows Mountains in teal, Plains in green, Hills in yellow. The Italian Alps are along the northern border of Italy. The Ap
2825 2072 2733 2069 2484 4285 2862 3353 1449 2029 1285 2982 2045 1677 1619 2597 3512 2444 1773 2284 1884 2359 2046 2364 2669 3109 2804 1658 2207 2159 2207 2882