Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Defining and Calling Functions | Diving Into Functions
C++ Introduction Video Course
course content

Course Content

C++ Introduction Video Course

C++ Introduction Video Course

1. Getting Started
2. Control Flow
3. Diving Into Functions
4. Strings and Characters
5. Arrays and Data Structures

book
Defining and Calling Functions

Task
test

Swipe to show code editor

  • Define a void function.
  • Modify your void function to print a message of your choice.
  • Call your function in the main function.

Solution

cpp

solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 1
toggle bottom row

book
Defining and Calling Functions

Task
test

Swipe to show code editor

  • Define a void function.
  • Modify your void function to print a message of your choice.
  • Call your function in the main function.

Solution

cpp

solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 1
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt