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

A 34.87 g sample of a substance is initially at 27.1 C. after absorbing 1071 J of heat, the temperature of the substance is 145.0 C. what is the specific heat (
which is not a major factor resulting in pollution from increased economic activity in China? a) More people are driving motor vehicles b) More factories are bu
About 140,000 Japanese died in this Japanese city when Americans dropped an atomic bomb at the end of World War II.
Does aussi go at the beginning or end on the sentence?
Why was the Santa cruz mission built?
how do u write 0.125 as a ratio
Ho Chi Minh was a dedicated __________.
Which sentence has correct capitalization. George Washington was the first president of the United States. George Washington was the first President of the Unit
Why did the colonists have trouble getting financial support and supplies from European countries?
Identify sunlight as a renewable resource