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

User Shanton
by
5.3k 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.

User Gthm
by
6.5k points