20.3k views
1 vote
The purpose of a function that does not return a value is

a. to package a repeated task as a function even though the task does not yield a value
b. to insert a temporary implementation of a function that can be refined later
c. to provide a function that can only be included in an assignment statement only
d. used when the function needs to produce output

1 Answer

6 votes

Answer:

The answer to the given question is the option "a".

Explanation:

A function is a block of organized code that provides the reusability of the code. It is used to perform a separate, complex action. In programming languages name is different like, functions, methods, subroutines, procedures, etc. but the working of the function is the same. The purpose of the function that does not return a value is the option "a" and All the options are correct.

User Gmlime
by
5.0k points