The purpose of a function that returns "void" is:_________. A) To satisfy compiler warnings B) To package a repeated task as a function even though the task does not yield a value C) To force a value to be returned in case the "return" statement is forgotten D) To insert a temporary implementation of a function that can be refined later

Respuesta :

Lanuel

Answer:

B) To package a repeated task as a function even though the task does not yield a value

Explanation:

The purpose of a function that returns "void" is to package a repeated task as a function even though the task does not yield a value. Since the function does not return any value, it control returns to the caller.

The purpose of a function that returns "void" is:

  • B) To package a repeated task as a function even though the task does not yield a value

According to the given question, we are asked to show the purpose of a function that returns "void"  and how it affects the specific program.

As a result of this, we know that a computer function is one which gives a command to a variable and when a function returns as void, then it simply repackages the repeated task and when it does not yield a value, then it is returned.

Therefore, the correct answer is option B

Read more here:

https://brainly.com/question/24194874

ACCESS MORE
EDU ACCESS