Unit 0 - C

C. Source Code. Machine Code. Compiler. Correctness, Design, Style. Visual Studio Code. Syntax Highlighting. Escape Sequences. Header Files. Libraries. Manual Pages. Types. Conditionals. Variables. Loops. Linux. Graphical User Interface (GUI). Command-Line Interface (CLI). Constants. Comments. Pseudocode. Operators. Integer Overflow. Floating-Point Imprecision.

Lecture

Source Code

Resources

Shorts
Reference Sheets

Practice and Problems

  • Practice:
    • Complete Hello, World
      • Make this in your practice folder
    • Submit Hello, It’s Me
      • Make this in a subfolder of practice called me and a file called hello.c
    • Complete Population Lab
      • Check: check50 cs50/labs/2023/x/population hopefully will work
      • Submit: submit50 cs50/labs/2023/x/population should work to submit, but may not check on submission
  • Problem Sets:
    Inside a new subfolder folder as such unit0/pset create the following:
    1. Submit one of:
    2. Submit one of:
      • Cash if feeling less comfortable
      • Credit if feeling more comfortable

    If you submit both versions of Mario, I’ll record the higher of your two scores. If you submit both Cash and Credit, I’ll record the higher of your two scores.

Advice

  • Try out any of the programs from class via the source code above
  • 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 hello, and
    make hello
    

    is yielding errors, try running

    help50 make hello
    

    instead!