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

Swipe to show menu

book
Defining and Calling Functions

Task

Swipe to start coding

  • 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

Ask AI

expand
ChatGPT

Ask anything or try one of the suggested questions to begin our chat

book
Defining and Calling Functions

Task

Swipe to start coding

  • 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