English

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

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
Advertisements

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?
Chapter 3: User-Defined Methods - Exercises [Page 90]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 3 User-Defined Methods
Exercises | Q 1. (viii) | Page 90
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×