Course Content
C++ Functions
C++ Functions
2. Function Arguments Specification
3. Function Return Values Specification
4. Some Advanced Topics
Simple Function Creation
Task
Swipe to show code editor
Your task is to create a function and call this function in the main()
function:
- Create function signature:
- specify
std::string
return type; - specify
helloWorld
as the name of the function
- specify
- Return string "Hello World".
- Call the function using its name.
Solution
solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 3
Simple Function Creation
Task
Swipe to show code editor
Your task is to create a function and call this function in the main()
function:
- Create function signature:
- specify
std::string
return type; - specify
helloWorld
as the name of the function
- specify
- Return string "Hello World".
- Call the function using its name.
Solution
solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 3
Switch to desktop for real-world practiceContinue from where you are using one of the options below