Discuss the purpose of functions in C++ Programming.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
A function is a block of code which only runs when it is called. You can pass data, known as parameters, into a function.
Explanation:
Functions are used to perform certain actions, and they are important for reusing code: Define the code once, and use it many times.
Hope makakatabang ito ehe