Ask Question
19 October, 01:34

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

+5
Answers (1)
  1. 19 October, 04:47
    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?
Get 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 & 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