Passing Parameters by Value to a Function in C++

preview_player
Показать описание
Demo of how to pass parameters by value to a function in C++.

Questions:
1) What is the return type of drawBar?
2) What are the two parameters of drawBar?
3) What are the two pieces of info you must provide for each formal parameter?
4) What symbol separates formal parameters?
5) What would a call to drawBar to create the following look like? ***
6) Do the names of the actual parameters (i.e. variables in main) need to match the names of the formal parameters?
7) What does it mean to "pass by value"?
Рекомендации по теме