Exercises, examples and other material relating to training module C221. This topic is presented on public courses
Learning to Program in C,
Learning to program in C and C++,
Programming in C,
C and C++ Programming,
Learning to program in C and C++,
C and C++ Programming
Background
As a low level language, there are a number of things
that C does NOT do for you that other languages do. For
example, if you use the contents of an uninitialised variable
you'll get unpredicatble results, and if you reference off the
end of an array you'll use or corrupt other variables or your
code. Such issues, together with bad programming and a lack of
thorough testing, have caused some of the major internet security
holes we've seen over recent years. In this module, we study the
issues that you need to guard against and teach you how to write
robust and reliable code in C.
Articles and tips on this subject | updated |
4635 | Encapsulating logic in functions and structs - the C approach to Object Oriented techniques Although C is not what is described as an "Object Oriented Language", many of the good programming principles that are applied naturally in OO programming can be applied in C too.
I wrote an example that showed this yesterday - with a C struct defining what is in essence an object, and being referenced ... | 2016-01-31 |
Examples from our training material
oob.c | A poor program - using un initialised variables and an out of bounds array |
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
[here].
Topics covered in this module
Pointer issues.
Portability issues.
Handling Binary data.
Scrubbing user input.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Ruby,
Lua,
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre.