Ask Question
5 November, 10:00

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

+1
Answers (1)
  1. 5 November, 12:49
    0
    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).
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Look at the following function prototype. double mynewFunction (int); What is the data type of the function's return variable? a. double b. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers