
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.
(written 2011-01-05, updated 2011-01-08)
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
C207 - C and C based languages - Pointers and references [1155] Pointers in C - (2007-04-19)
[1478] Some new C programming examples - files, structs, unions etc - (2007-12-19)
[1497] Training Season Starts again! - (2008-01-07)
[2005] Variables and pointers and references - C and C++ - (2009-01-23)
[2572] The what and why of C pointers - (2010-01-13)
[2670] Pointers to Pointers to Pointers - what is the point? - (2010-03-10)
[3004] Increment operators for counting - Perl, PHP, C and others - (2010-10-18)
[3238] Bradshaw, Ben and Bill. And some C and C++ pointers and references too. - (2011-04-09)
[3242] How to return 2 values from a function (C++ and C) - more uses of pointers - (2011-04-10)
[3386] Adding the pieces together to make a complete language - C - (2011-08-11)
[3399] From fish, loaves and apples to money, plastic cards and BACS (Perl references explained) - (2011-08-20)
[4128] Allocating memory dynamically in a static language like C - (2013-06-30)
[4560] Variables, Pointers and References - C and C++ - (2015-10-29)
C205 - C and C based languages - Arrays [1614] When an array is not an array - (2008-04-17)
[2002] New C Examples - pointers, realloc, structs and more - (2009-01-20)
[2840] Just pass a pointer - do not duplicate the data - (2010-06-30)
[3118] Arrays of arrays - or 2D arrays. How to program tables. - (2011-01-02)
[3144] Setting up arrays in C - fixed size at compile time, or dynamic - (2011-01-24)
[3245] Collections in C and C++ - arrays, vectors and heap memory blocks - (2011-04-12)
[4338] Passing arrays into functions in C - (2014-12-02)
[4566] C - why is slow to write and debug) but fast to run? - (2015-11-01)
C203 - C and C based languages - Conditionals and Loops [353] Wimbledon Neck - (2005-06-20)
[962] Breaking a loop - Ruby and other languages - (2006-12-03)
[1191] Smart English Output - via PHP and Perl ? : operator - (2007-05-18)
[1220] for loop - how it works (Perl, PHP, Java, C, etc) - (2007-06-06)
[1582] Ruby, C, Java and more - getting out of loops - (2008-03-19)
[1696] Saying NOT in Perl, PHP, Python, Lua ... - (2008-07-04)
[2570] Function Prototypes in C - (2010-01-11)
[3200] How a for loop works Java, Perl and other languages - (2011-03-12)
[3243] Breaking the running sequence - an introduction to conditional statements and loops - (2011-04-11)
[3384] Loops - a comparison of goto, while and for - (2011-08-10)
[3397] Does a for loop evaluate its end condition once, or on every iteration? - (2011-08-18)
[4322] Learning to Program - the conditional statement (if) - (2014-11-21)
[4323] Learning to program - Loop statements such as while - (2014-11-22)
[4337] Learning to program sample program - past its prime, but still useful - (2014-12-02)
C202 - C and C based languages - A first practical program [888] Turning C from source to a running program - (2006-10-06)
[2580] C course inspires new teaching examples - (2010-01-16)
[3236] C - a first program that does something useful for you - (2011-04-09)
[3590] Defining, declaring and initialising variables in C - (2012-01-24)
[4632] Remember to ask the question before you listen for the answer - (2016-01-26)
Some other Articles
The family is defunct. Long live the family.C++ - putting the language elements together into a programC++ objects - some short, single file demonstrationsWhen is a program complete?New year, new C CourseLearning to write good programs in C and C++ - separating out repeated codeTransWilts - some things to see and doOpportunities for Melksham - new businesses in the townAre there newspapers on New Years Day? Do the shops open on Easter Sunday? Do trains run at Christmas?