163k views
0 votes
How do you create a function in C++

User Wildpeaks
by
4.3k points

1 Answer

1 vote

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 Sathed
by
4.7k points