Chapter 13

  1. The automatic and the static storage classes.

  2. The external storage class, the external static storage class, and the static storage class.

  3. The external storage class and the external static storage class.

  4. One source of inefficiency is that items are often relocated only to be relocated again before the inner loop finishes a cycle. Also, sometimes they actually get moved to positions far worse than the original position. Suppose, for example, that you're sorting the values 2, 10, 14, 8, 6, 19, and 1 in increasing order. At the end of the first inner loop cycle, the 1 and 2 are swapped, positioning the 1 correctly but placing the 2 far from its final position.

  5. Replace array[search] > array[top] with array[search] < array[top].

  6. A string should ...

Get C Primer Plus®, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.