Archive - Originally posted on "The Horse's Mouth" - 2011-01-05 07:10:55 - Graham Ellis
Well - not completely a new course. New delegates, and lots of new examples written for them during the first day to that they can see not only WHAT work but also HOW the design of what works is put together during the day. Click on the individual source code examples, and you'll find programs to which I added further comments after we were done for the day.
Basics ...
Commenting in C - [source]
Also uses a function from another file - [source]
Loops and conditionals ...
Repeating code in a while loop - [source]
Good and bad for loops- [source]
If and else and use of blocks- [source]
Functions ...
Variable scope in blocks - [source]
Returning values from a function - [source]
Arrays ...
Returning values from a function - [source]
Pointers v Arrays - [source]
Pointers ...
First pointers demo - [source]
Passing a reference - [source]
Passing complex data via a single pointer - [source]
Preprocessor Directives ...
Some common preprocessor directives - [source]
See [here] for details of more upcoming public C courses.