Exam 1

Exam 1 is Wed Oct 14. It will cover all material from Day 1 up to and including Day 15. The exam will be during normal class time in our same room. The exam will be written, no notes, no calculator, just pencil/pen/eraser and paper. There should be around 5 to 6 problems on the exam.

Answers

Sample Questions

    int *m = new int[2];
    m[0] = 0;
    m[1] = 1;
    int *p = m;
    p[0] = 4;
    p[0] = 5;
void reverse() {
    for (int i = 0; i < n/2; i++) {
        T temp = arr[i];
        arr[i] = arr[n-1-i];
        arr[n-1-i] = temp;
    }
}