Write a method prototype name check() which takes an integer argument and returns a char:
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]
