Define the term void functions.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 10SA: Why do you need to include function prototypes in a program that contains user-defined functions?...
icon
Related questions
Question

Define the term void functions.

Expert Solution
Step 1

Void functions

  • Void functions are stand-alone statements.
  • When void is used as a function, then it does not return a value.
  • When used in a function’s parameter list, then it indicates that the function takes no parameters.
  • These functions are created and used just like value returning functions.
steps

Step by step

Solved in 2 steps

Blurred answer