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
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
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
Science,
7 months ago
Math,
7 months ago
Economy,
1 year ago
Math,
1 year ago
Accountancy,
1 year ago
Social Sciences,
1 year ago