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

2² + 5 • 4 ÷ 2 =? is it 18 or 14, and how? this is for my own personal studying
Which sentence uses italics or quotation marks correctly? A. Kendall looked up this article in the Readers' Guide to Periodical Literature. B. Her book report i
Perform the indicated operation. -8 + (-4) -4 4 12 -12
Please help me out!!!!!!
Which NIMS management characteristic may include gathering, analyzing, and assessing weather service data from technical specialists?
6.75^2+4^2=??????????
give a detailed explanation of how you can use the laboratory technique of titration to determine the concentration of a sodium hydroxide solution
In the inequality 3x + 14 ≤ 44, x represents the cost of CDs Tim bought. Which phrase most accurately describes the cost of CDs? A) The cost of the CDs is at mo
How do you do this? 68.32\2.8=
Which item has the greatest effect on variation mutation agouti gene gene shape cell membrane structuire