Ask Question
7 March, 11:45

Write three function prototypes:

Function 1: Return type: void Function name: printHeading Parameters: one string called heading

Function 2: Return type: int Function name: year Page Parameters: one int called current Year, one int called birthYear

Function 3: Return type: void Function name: printable Parameters: one array of strings called names, one array of ints called birthDays, one int called size

+4
Answers (1)
  1. 7 March, 13:00
    0
    Declaration for function 1:

    void printHeading (String heading);

    Declaration for function 2:

    int yearPage (int currentYear, int birthYear);

    Declaration for function 3:

    void printable (String [] names, int [] birthDays, int size);

    Explanation:

    Prototypes of any function includes its return type followed by its name followed by list of arguments used by it enclosed within parenthesis.

    Syntax for method declaration:

    return_type function_name (list_of_arguments);
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write three function prototypes: Function 1: Return type: void Function name: printHeading Parameters: one string called heading Function ...” 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