Computer Science, asked by Nikhillll286, 1 year ago

Which of the following statement is used to return a value in a function ? (a) return
(b) function
(c) select
(d) send

Answers

Answered by chinniteja544
2

Answer is "a"

return function :The value of expression, if present, is returned to the calling function. ... If no return statement appears in a function definition, control automatically returns to the calling function after the last statement of the called function is executed. In this case, the return value of the called function is undefined.

Answered by smartbrainz
3

The 'return statement' is used to return a value in a function.

Option (a)

Explanation:

  • The 'return' statement concludes the function execution and the control goes back to the calling 'function'. The execution begins immediately after the statement in the calling 'function'.
  • The return statement caters to return a value to the calling 'function'. The return statement has an optional expression. If the expression is present, then the expression value is returned to the calling 'function'. If the return expression is skipped, the 'function return value is undefined'.

To know more about statements

Uses of different statements in C program​

https://brainly.in/question/13124164

What is a null statement in c?​

https://brainly.in/question/9680318

Similar questions