Final Review

The final exam

  1. practice final examination.
  2. real final examination.

Four confessions

Don’t need {curly braces} around a single statement.

  1. single1.C: for loop
  2. single2.C: if statement

Prefix vs. postfix increment (and decrement)

  1. Output the incremented variable.
    1. output1.C: prefix increment
    2. output2.C: postfix increment
    3. output3.C: avoid postfix increment
  2. Copy the incremented variable.
    1. assign1.C: prefix increment
    2. assign2.C: postfix increment
    3. assign3.C: avoid postfix increment

const data types

  1. const.C: the data types const int vs. plain old int

Easier way to get the number of elements in an array

  1. size.C

Spring 2025 Computer Science II CISC-2000-E01 (Thursdays)

  1. Syllabus
  2. sql.C: read records from a database