Lab 6 Answer Sheet

This lab is to be worked  individually.

Name: ________________________     Netid: _______________  Section: _______

Each part worth 1.5 points (including TA signature).

Note: On some older lab sheets, the questions may be numbered starting at 2.


1. Write the warning and error message or messages that gcc produced:

  part of the following:
../intro.c:6: warning: format ¡®%i¡¯ expects type ¡®int *¡¯, but argument 2 has type ¡®int¡¯
../intro.c:9: error: expected ¡®;¡¯ before ¡®else¡¯
make: *** [intro.o] Error 1
make: Target `all' not remade because of errors.
 

2. Write what happens when you run your program for the first time after it compiles:
 
  Segmentation Fault


  or ... program terminates without producing output or "nothing" or anything equivalent.
 
 
 
 
 
 

3. TA's initials for Part 2: _______