KnowledgeBoat Logo
|

Computer Applications

Write a method prototype name check() which takes an integer argument and returns a char:

  1. char check()
  2. void check (int x)
  3. check (int x)
  4. char check (int x)

User Defined Methods

ICSE 2023

26 Likes

Answer

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)

Answered By

13 Likes


Related Questions