Interview answers verified by specialists.

Find interview questions and answers on this website:

See right interview answers on 30 common job interview questions

Should a function contain a return statement if it does not return a value?

In C, void functions (those that do not return a value to the calling function) are not required to include a
return statement. Therefore, it is not necessary to include a return statement in your functions declared as
being void.

In some cases, your function might trigger some critical error, and an immediate exit from the function might
be necessary. In this case, it is perfectly acceptable to use a return statement to bypass the rest of the function's
code. However, keep in mind that it is not considered good programming practice to litter your functions
with  return statements-generally, you should keep your function's exit point as focused and clean
as possible.

Do you know that?

1 in 10 workers is not an employee of the company they work for Next


Getting payments for Freelancers
1. Read how to register and get earned money

2. Open account within 5 minPayoneer sing up to get free $25