Introduction to Programming in C - Index page to the course notes

This is a course notes designed to teach programming with C. Knowledge of how to open, save and edit files on your chosen Operating System (Linux or Windows) is assumed. Although aimed at beginners the course does include some advanced sections. These are labelled and can be skipped by the beginner.

The tools required for this are the gcc compiler on Linux or Unix (which are a standard part of the installation) or Dev-C++ for Windows or Linux (available from www.bloodshed.net )

These notes are from rishistar Computing at www.rishistar.org/computing.

These notes and accompanying worksheets are © Rishi Nag 2001 and 2004. They may be distributed unaltered within educational institutions, and may not be sold.


Course Chapters Worksheets

1 Introduction
2 A First C Program
3.An Introduction To Variables and Constants
4. Instructions
5 Program Control Flow
6 Functions
7 An Introduction to Memory Usage
8 Building up Data Structures
9 Spreading Data Across Files
10 Pointers
11 Library Functions
12 File Handling
13 Problem Solving
14 Epilogue

  1. Using gcc compiler and Bloodshed Dev-C++ v4.0
  2. How to Use Linux for C Programming
  3. Variables & basic arithmetic operators.
  4. Operators & scanf()
  5. Conditional expressions
  6. Functions
  7. arrays & stuctures
  8. Header files
  9. Pointers
  10. String.h & ctype.h
  11. File I/O
    unDer construction
  12. Mo' C data structures
  13. <Math.h>

Recommended Books

Although these notes cover the main points of C you may find another book helpful. If you are going to continue programming in C the use of a good reference book is vital.

TitleAuthorPurchaseLevelReview
Sams Teach Yourself C in 21 DaysPeter Aitken, Bradley L. JonesSee Review and Purchase From AmazonIntroductoryPresents C programming techniques in a logical and structured manner.
Absolute Beginner's Guide to CGreg PerrySee Review and Purchase From AmazonIntroductoryA great book to learn C programming for those with no programming experience
The C Programming LanguageBrian W. Kernighan, Dennis M. RitchieSee Review and Purchase From AmazonReferenceThe bible for C reference books - a thorough standard book with library and syntax detail.
The C Pocket ReferencePeter Prinz, Ulla Kirch-PrinzSee Review and Purchase From AmazonReferenceShort and to the point ANSI C reference book. Cheaper than K&R
Practical C ProgrammingSteve OuallineSee Review and Purchase From AmazonIntermediateGood book with more in-depth examples with emphasis on what a C Programmer needs.
If you are a PayPal user and have enjoyed (?) using these notes please consider making a donation using the button below. Thanks. Rishi.