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

Convert 11.7 cm3 into ml​
Two-fifths of a gallon of deck stain covers one quarter of a deck. How much stain is needed for the entire deck?
G Where do Jill and Mr. Mouse find Jack? in the castle o the hospital o with the Penguin o the Bears' garden
Any help would be appreciated
Tribology is a branch of physics concerned with friction in mechanical motion. Knowledge of tribology would be useful working with _____. a. any sort of drive
What are protists and how do scientists describe the Kingdom of organism
Which isa category of mental health disorders?​
The majority of people in the world speak a(n) __________ language
_______________ is the use of IT in communication. a) email b) Chatting c) FTP d) All of the above
Read and choose the option that answers the question. ¡Buenos días! Me llamo Carlos Manuel Rivera. Todos los días me despierto a las siete en punto de la mañana