Lecture 2: April 5, 2023

Reading: zyBooks text, §1; Paper: 3, 4


Outline
  1. Greetings and felicitations!

  2. Quick overview of compiling

  3. Example program 1: hello.c
      x
    1. What is stdio?
    2. printf
    3. The function main

  4. Example program 2: fahr1.c
    1. Program (main, return or exit for main)
    2. Declarations (int, register int)
    3. Body (while, printf)

  5. Example: making change
Papers
  1. Compiling and Executing Your Program, compiling.pdf
  2. Writing a Program, writingprogram.pdf


UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: mabishop@ucdavis.edu
ECS 36A, Programming & Problem Solving
Version of April 4, 2023 at 11:56PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh