Which of the following are mandatory to write the type annotations in the function definition
a. { } b) ( ) c) [ ] d) < >
Answers
Parenthesis ( ) - Option b
is mandatory to write the type annotations in the function definition.
Explanation:
In general notation, the function definition's structure is:
function_keyword/return_type function_name ( type parameter, type parameter...)
{
body
}
To take in the typed arguments or parameters, the definition of the function holds them within the parenthesis () to tell the compiler that those are the parameters that are sent on call for their usage within the function.
So, the answer is Parenthesis ()
Learn more:
1. Write a program in Java to generate the following pattern using nested loops.
brainly.in/question/18819254
2. Write a java program to input name and phn numbers of all employees of any office. Using "Linear Search", search array of phn numbers for a given "mobile number" and print name of employee if found, otherwise print a suitable message.
brainly.in/question/18217872