Quiz


  1. What is the difference between variable scope and lifetime?

  2. Must a function other than main be prototyped?

  3. Is a function required to have at least one argument?

  4. Can a function have more than one argument?

  5. 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?

  6. 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?

  7. Must a function have a return value?

  8. Can a function have more than one return value?

  9. May a function have neither a return value nor any arguments?

  10. May a function have both a return value and arguments?




C++ Demystified(c) A Self-Teaching Guide
C++ Demystified(c) A Self-Teaching Guide
ISBN: 72253703
EAN: N/A
Year: 2006
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net