English

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

Advertisements
Advertisements

Question

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

Options

  • char check()

  • void check (int x)

  • check (int x)

  • char check (int x)

MCQ

Solution

char check (int x)

Explanation:

The prototype show that the function is returning a char and taking input an integer.

shaalaa.com
  Is there an error in this question or solution?
2022-2023 (March) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×