Advertisements
Advertisements
प्रश्न
Write a method prototype name check() which takes an integer argument and returns a char:
विकल्प
char check()
void check (int x)
check (int x)
char check (int x)
MCQ
Advertisements
उत्तर
char check (int x)
Explanation:
The prototype show that the function is returning a char and taking input an integer.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
The number of values that a method can return is ______.
A method which does not modify the value of variables is termed as ______.
Method prototype for the method compute which accepts two integer arguments and returns true/false.
Assertion(A): An argument is a value that is passed to a method when it is called.
Reason(R): Variables which are declared in a method prototype to receive values are called actual parameters.
