asked 129k views
0 votes
The _________ statement causes a function to end immediately.

asked
User Shanton
by
6.4k points

1 Answer

4 votes

Answer:

return

Step-by-step explanation:

return is the statement which is used to return the value from the function definition to the function calling.

it is also used as exit from the function.

for example:

int count()

{

return 0;

printf("hello");

}

In the above the function return 0 without print the message "hello". we can used return any where inside the function for immediately ending the execution of function.

answered
User Gthm
by
8.4k points

No related questions found