CS 112 - Lab 1
Questions


Name: _________________________ ID: ____________________
Friday Lab Section (check one): [ ] 8:00am-11:00am

[ ] 11:10pm-2:10pm

Provide answers (on this sheet) to the questions below, and hand them to the TAs at the beginning of Lab 2 on Friday, January 31.

  1. What is the purpose for using function prototypes such as int nexti (int, int); ?
    
    
  2. Are the arguments for the functions nexti and nextj passed by value or reference? Explain.
    
    
    
  3. What does the data type void mean?
    
    
  4. How many iterations of the do-while loop in your main( ) function are required to fill-out a magic square of size 13?