Ask Question
16 September, 10:43

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. 16 September, 11:17
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers