Difference between revisions of "StartingC"
Jump to navigation
Jump to search
(→Types) |
|||
Line 35: | Line 35: | ||
sizeof() | sizeof() | ||
casting | casting | ||
+ | |||
+ | enumerated types | ||
=The C Preprocessor= | =The C Preprocessor= |
Revision as of 16:06, 18 August 2009
startingC: Learning the C Programming Language
svn co http://source.ggy.bris.ac.uk/subversion-open/startingC/trunk ./startingC
A Quintessential Start
cd startingC/examples/example1
we will be using make
make
and run the classic program
./hello.exe
Types
int char float double
short & long
sizeof() casting
enumerated types
The C Preprocessor
Loops & Conditionals
if then else
(switch) case (default - fall through)
while and for
break & continue
Functions & Header Files
Arrays & Pointers
address, dereference address arith 2d arrays binary trees and linked lists - just give examples
Structures
DAB again
watch out for padding