1(viii)
Write a method prototype name check() which takes an integer argument and returns a char:
- (a)char check()
- (b)void check (int x)
- (c)check (int x)
- (d)char check (int x)
Show SolutionHide Solution↓
char check (int x)
Reason — The prototype of a function is written in the given syntax:
return_type method_name(arguments)
Thus, the method has the prototype given below:
char check (int x)