CS 225 Midterm Notes
This is a list of topics that may be covered on the midterm.. Read over
the course notes for more detailed topics. Read the parts of the book that
cover these topics for more examples. I won't ask about things in the book
that we haven't covered in class.
integers, floats. chars. How are they the same, how are thet different?
Definition, declaration, use ( how to get and store values), rules (all
the elements are the same size). counting (starts at 0), Chapter
4 has some information.
Array of characters, Nul character at the end, Nul is not NULL,
Declaration, use, dereferencing, the name of an array is a pointer to an
array, pointer arithmetic, how to use to move along an array, know what
the line while(*dest++=*src++) ; means and how it works. There is
some information in Chapter 9.
Declaration and use, both the name.field and name->field
New and Delete
What do they do, how do you use them?
Know the different operators ( <, >, >+, <=, != ) know the
logical operators ( !, &&, || ) How to combine them.
What is true and what is false?
Know the form and use of if, do, while, for and switch statements.
Know what a break and continue are for.
What is a global variable? What is a header file? What is a const