Next: September 9
Up: September lecture summary
Previous: September lecture summary
September 5
- Administration, marking scheme, don't plagiarize.
- Why ``Algorithms and Data Structures'' is not equivalent to
``The C course.''
- Where C fits between micros and cosmos.
- Begin Crash course in C, Part
I, pages
1-4 (see also ``Data Structures and Program Design in C,'' Kruse,
Tondo, and Leung, 629-631).
- A ``Hello world'' program with a comment, an #include
directive, and a main function.
- Declarations associate a variable name with a piece of memory.
- Declarations have types, can't mix declarations and executable
statements.
- Some types differ by precision. How precise? See
<limits.h>
- You may assign values to and evaluate stored values in a
variable. the = sign means assignment not
equality.
- Assignments return values. You can increment variables a few
ways. Prefix and postfix increments might be subtle.
- Formatted printf allows you to send interesting text to
standard out.
Danny Heap
2002-12-13