285,746 views
19 votes
19 votes
How do you create a function in C++

User Bob Vesterman
by
2.7k points

1 Answer

18 votes
18 votes

Answer:

1. Declaration: the return type, the name of the function, and parameters (if any)

2. Definition: the body of the function (code to be executed)

Step-by-step explanation:

User Grajsek
by
2.4k points