The _____ statement causes control to be returned to the point from which the function was accessed. Fill in the blank.
Answers
Answered by
0
Hi,
Answer:
The RETURN statement causes control to be returned to the point from which the function was accessed.
Explanation:
➖➖➖➖➖
➡️Every function must include a return statement.
➡️When we call a function by function call statement,then control transfers to that function,execute the sequence of statements
➡️At last a return statement is executed,which return the computed value and transfer the control to main program,next to the function call statement.
➡️for example:
int ADD ( int x, int y)
{
int z,
z = x + y;
return (z);
}
➡️Function Call:
main()
{
---------
--------------------
----------
C= ADD(5,9);
f= C+1
----------------;
--------;
when calling ADD(5,9)
control transfers to function declaration and execute the function body,when return statement execute,control transfer to next statement ,here it is f= C+1
Hope it helps you.
Answer:
The RETURN statement causes control to be returned to the point from which the function was accessed.
Explanation:
➖➖➖➖➖
➡️Every function must include a return statement.
➡️When we call a function by function call statement,then control transfers to that function,execute the sequence of statements
➡️At last a return statement is executed,which return the computed value and transfer the control to main program,next to the function call statement.
➡️for example:
int ADD ( int x, int y)
{
int z,
z = x + y;
return (z);
}
➡️Function Call:
main()
{
---------
--------------------
----------
C= ADD(5,9);
f= C+1
----------------;
--------;
when calling ADD(5,9)
control transfers to function declaration and execute the function body,when return statement execute,control transfer to next statement ,here it is f= C+1
Hope it helps you.
Answered by
0
Hello !
Here is your answer !
Answer : Return...
Hope it helps :)
Similar questions