Unit 1 - Arrays

Preprocessing. Compiling. Assembling. Linking. Debugging. Arrays. Strings. Command-Line Arguments. Cryptography.

Lecture

Source Code

Resources

Shorts
  1. Functions
  2. Variables and Scope
  3. Debugging - Step Through
  4. Debugging - Step Into
  5. Arrays
  6. Command Line Arguments
Reference Sheets

Practice & Problems

  • Lab 2
  • Practice Problems

  • Problem Sets:
    • Run update50 in your codespace’s terminal window to ensure your codespace is up-to-date and, when prompted, click Rebuild now
    • Submit Readability
    • Submit one of the following:

If you submit more than one of Caesar or Substitution I’ll record the single highest of your scores among those problems.

Past Problems

Advice

  • Try out any of the programs from class via the source code above
  • To see the manual pages for C functions, visit manual.cs50.io
  • If you see any errors when compiling your code with make, focus first on fixing the very first error you see, scrolling up as needed. If unsure what it means, try asking help50 for help. For instance, if trying to compile readability, and
    make readability
    

    is yielding errors, try running

    help50 make readability
    

    instead!