C++ Demystified(c) A Self-Teaching Guide
-
What is the difference between variable scope and lifetime?
-
Must a function other than main be prototyped?
-
Is a function required to have at least one argument?
-
Can a function have more than one argument?
-
What is the effect on a variable in main if it is passed by value to another function which changes the argument corresponding to that variable?
-
What is the effect on a variable in main if it is passed by reference to another function which changes the argument corresponding to that variable?
-
Must a function have a return value?
-
Can a function have more than one return value?
-
May a function have neither a return value nor any arguments?
-
May a function have both a return value and arguments?
Категории