CSE271: Short Quiz #5 -- C preprocessor and debugging

  1. (3 points) What is the command in gdb to see the sequence of functions that were called to get to the current location in the program?

  2. (3 points) What is the difference between
         #include <somefile.h>
    and
         #include "somefile.h"

  3. (4 points) Create a preprocessor macro to replace the sometimes troublesome == operator. This macro should take two arguments and generate an expression that evaluates to true only when the two argument values are identical.


Last revised: 22 February 2007, Brian D. Davison.