Outline for May 12, 2025

Outline for May 12, 2025

Reading: C Notes text, §4.2, 4.3, 9, 20, 22.6, 24, 56
Assignments: Homework #3, due May 14, 2025

  1. Internal representation of data
    1. Union [union.c, union2.c]
    2. Conversion among hexadecimal, binary, and decimal
    3. Bit operations: & (ampersand), | (vertical bar), ^ (carat), ~ (tilde)
    4. Extracting bits [bits1.c, bits2.c, bits3.c, bits4.c]

  2. C operator a ? b : c

  3. C function pointers [fptr.c, funcptr.c]

  4. C library functions

  5. Standard I/O library
    1. stdio.h
    2. FILE *
    3. Full, line, buffering; unbuffered

UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: mabishop@ucdavis.edu
ECS 36A, Programming and Problem Solving
Version of May 12, 2025 at 3:15PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh