What are the two main differences between the syntax for creating a value-returning function and the syntax for creating a void function?

What will be an ideal response?


First, a void function's header begins with the keyword void rather than with a data type. The void keyword indicates that the function does not return a value. Second, the function body in a void function does not contain a return statement, which is required in the function body of a value-returning function

Computer Science & Information Technology

You might also like to view...

Facebook lets you upload just about any type of video and share it as a status update, which means all your friends should see it as part of their News Feeds

Indicate whether the statement is true or false

Computer Science & Information Technology

____ is a moral theory that holds that X is good exclusively because God commands it.

A. Grace Theory B. Theory of Evolution C. Almighty Arbiter Theory D. Divine Command Theory

Computer Science & Information Technology

If a form is designed properly it will not have to be changed once data entry has begun

Indicate whether the statement is true or false

Computer Science & Information Technology

To view only one layer in the document window, ____ the visibility icon for the layer you want to view. ____ again restores the previous visibility settings.

a. ESC+click b. CTRL+click c. ALT+click d. SHIFT+click

Computer Science & Information Technology