61.1k views
3 votes
In a @return tag statement the description:

A. Describes the return value
B. Must be longer than one line
C. Cannot be longer than one line
D. Describes the parameter values

2 Answers

2 votes

Answer:

The correct answer to the following answer will be option A.

Step-by-step explanation:

Return tag: A tag which is used to return the value of methods or a function. To returns the element accoding to data type of method or function we use return keyword to returning the value.

For Example:

int fun() // function definition

{

int ab=90; // variable declaration

int c=45+ab; // variable declaration

return(c); // returning the value of c

}

In this the integer value is returning a function.

User Michiel
by
5.8k points
4 votes

Answer:

Option A is the correct choice answer for the above question.

Step-by-step explanation:

The programming concept says that every function returns some value. If the return value is not defined by the user then the function returns the garbage value otherwise it returns the defined value by the user.

The return value is defined by the user with the help of the "return" statement and with the help of the following syntax-

return value; // The return statement.

Hence the option A is right because it satisfies the above concept while the other is not because--

  • Option B states that it must be longer than one line which is not correct.
  • Option C states that it cannot be longer than one line but this line does not make any sense about the returned statement.
  • Option D states that it describes the parameter value which is the wrong definition about the returned statement.
User Robertohuertasm
by
6.8k points