Skip to main content
  1. /classes/
  2. Classes, Spring 2026/
  3. CS 2470 Spring 2026: Course Site/
  4. cs2470 Old Notes (from 2025)/

Lecture Notes: 06 2D Arrays

·45 words·1 min·

Bug in the C code:
#

    // longest.c :18
    char* tmp = malloc(strlen(word) + 1);

Derp
#

  • All constant literals:
    • An array of student names
    • An array of assignemnt names
    • A 2D array of grades
  • 2D arrays:
    • One array with manual indexing
    • Array of arrays
Nat Tuck
Author
Nat Tuck