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
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C++ Introduction Video Course

bookDefining 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

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 1
single

single

Ask AI

expand

Ask AI

ChatGPT

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

Suggested prompts:

Can you explain how the border animation works in this code?

How can I customize the border colors or animation speed?

Is this border animation supported in all browsers?

close

bookDefining and Calling Functions

Swipe to show menu

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

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
single

single

some-alt