write the function prototype of a static method named calculator that accept two short type variable as its argument and return integer value
Answers
Answered by
6
Answer:
static int calculator (short a, short b)
Answered by
0
Function prototype of a static method is static int calculator(shortx , shorty)
Static method:
In contrast to an object instance formed by the function Object() { [native code] }, a static method (or static function) is a method declared as a member of an object but is available directly from the function Object() { [native code] } of an API object.
Prototype of a function:
- When the EGL system code does not have access to the function itself, a function prototype definition is used to provide type checking on function calls.
- The term "function" is used to introduce a function prototype, which then lists the function's name, any applicable parameters, and return value.
Final answer:
Function prototype of a static method is static int calculator(shortx , shorty)
#SPJ3
Similar questions