Question: 1. What is the difference between an argument and a parameter in C++? 2. How many values can a function return to the main program

 1. What is the difference between an argument and a parameter

1. What is the difference between an argument and a parameter in C++? 2. How many values can a function return to the main program in C++? Does a function have to return a value? 3. What would you do to make sure that a function cannot change the value of an argument that it is sent? 4. What is a global variable in C+ and where in a C+ program would you declare a global varaible? 5. What is a static local variable in C++ and why would you use one in a function? 6. How do you designate a reference variable in a C++ function and prototype? Why would one use a reference variable? What is the advantage of breaking a larger program down into a smaller main program with several procedures or functions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!