Outline for April 21, 2025

Outline for April 21, 2025

Reading: zyBooks text §10, 11.6,12.3
Due: Homework #2, due April 30, 2024


  1. More examples on recursion
    1. String length [rstrlen.c]
    2. Selection sort [sort.c
    3. Ackermann’s function [ack.c]
    4. Fibonacci numbers [fibrec.c]

  2. Indirect recursion [pr1ton.c]

  3. Command line options
    1. getopt [getopt.c]

  4. Comma operator

  5. Converting strings to numbers
    1. atoi, atof [conv1.c]
    2. strtol, strtof, strtod [conv2.c]

  6. Converting numbers to strings
    1. sprintf


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 21, 2025 at 10:44AM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh