Lecture 7: April 23, 2024

Reading: zyBooks text, §2.20, 6.16, 12.4
Assignments: Homework 2, due May 6

  1. Announcements
    1. Ask if there are questions about the homework or running programs on the CSIF

  2. Miscellaneous
    1. Order of evaluation of function arguments [orderparam.c]
    2. Review ++a, a++; also --a, a-- [ppmm.c]

  3. Formatted input
    1. scanf [scan1.c, scan2.c, scan3.c]
    2. fgets and sscanf [scan4.c]
    3. Be careful! [scan5.c, scan6.c]

  4. Formatted output
    1. printf, sprintf, fprintf [print.c]
    2. Conversion specifications for printing

  5. C compiler structure

  6. C preprocessor
    1. #include
    2. #define [macros.c]
    3. #undef
    4. Predefined macros

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 22, 2024 at 3:50PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh