State of the course end of Oct 16th class
We have covered the material bellow in the class to date, the section of the book is noted in bold
- History of C
- basic unix commands
- 1.1editing and basic layout of a c program, compiling
- 2.3Comments
- 1.2intro to printf
- 6.14int argc, char *argv[]
- 1.3intro to declairing variables
- 1.4, 2.6, 2.13intro to the pre-processor and constants
- 1.5formating output and intro to scanf
- 1.6, 4.16Flow control, if else, while, switch for was not disscused
- 1.7intro to functions, arguments and returns
- 1.8-1.10skipped, will pickup latter
- 2.1programs are made of bits
- 2.2BNF, not as shown in book will not be on any tests for this class
- 2.4Key words, noted that [goto, const, extern, register, volatile] would not be covered in course
- 2.5, 2.3rules for naming identifiers (aka things that we name,) bnf from 2.3 discussed
- 2.7skipped
- 2.8-2.11operators on variables (ie how to say int i = 2+2)
- 2.12skipped
- 3.1types and size of basic data types,
- 3.2a char is an int and what that allows
- 3.3, 3.4the int type
- 3.5floating point data types (float, double, long double)
- 3.6sizeof() discussed, we will return to size of later
- 3.7getchar(). putchar() skipped
- 3.11casting, the good, the bad, and the bizzar
- 3.7, 3.12Skipped
- Disscussion of stdin and getchar()
- 4.1false == 0
- 4.1- 4.4 Truth tables and logical operators <, >, <=, >=, ==, !=, !, &&, ||
- 4.5short circut with && and || also effects of ()
- 4.7revisit if and if else and if if else etc.
- 4.8while loop and do while disscussed
- 4.9-4.11for loop including use of comma in for statments and varations
- 4.14skipped
- 4.15break continue and spaggeti code
- 4.16switch disscussed
- 4.17skipped
- 5.1how to declair a function
- 5.2what does return do
- 5.3, 5.5prototypes
- 5.5skipped
- 5.7Call by Value
- 5.10scope rules (block v. fuction v. program)
- 5.11-5.13skipped
- 5.14recursion
- not in bookdisscussion of calling stack and lots of recursion
- 5.15a program in parts with #include #define #ifndef #endif
- 6.1 single demension arrays
- 6.2What is a pointer and how to declair
- 6.3Call by reference swap function
- 6.4Array is a special pointer
- 6.5getting space with malloc and calloc also memory leaks
- 6.6arrays passed into functions more call by referenc
- 6.10Strings character arrays ending with '\0'
- 6.11usefull things in string.h and stdlib.h also strtok()
- 6.12-6.13multi dim arrarys and arrays of pointers/jagged arrays
- 6.14args to main covered previously
- 6.16functions as arguments
- end of stuff for midt-term
- 7.5Enum (7.6) as an example
- 9.1What is a structure
- 9.2Getting at the member variables
- 9.xPointers to structures, . v. -> etc.
- 9.4typedef and creating your own types
- 9.7unions briefly mentioned
- 11.1-11.3printf() is fprintf(stdout,) and same for scanf and fscanf (reading and writting files)
- 11.4open to read or write read or write and close
- 11.9Permissions
- 11.xfile pointers, graceful failure
- 10.1stucts that have pointers to things of same type
- 10.2Linked lists
- 10.3-4Should be understandable but not specificaly covred
- 10.5-6Stacks push, pop init LIFO
- 10.7Ques FIFO enque deque
- 10.8Binary Trees (light)
- 10.9Not done
- 11.17Makefiles
- 12.1-2fork and execi (light)
This page was last modified on .
to the Department of Computer Science