Quick Course on C

Introduction

I’m assuming, first of all, that you have some clue how to program and that you’ve done some programming in the past. You should understand how variables, subroutines/functions, input and output, etc. work in general; this is a whirlwind tour of C that includes use of these features.

Do not expect to become proficient in C by reading quickly through this. Learning C is like learning any language—you’ve got to practice and play with it to get anywhere useful. If you’re coming from an interpreted language like BASIC or PHP or Perl, you should be fine going through this. If you’re coming from Java, for heaven’s sake be careful once you get to anything more advanced than basic variables. Pointers are real and can be dangerous and frustrating beasties if you don’t know how to use ’em.

If you find a problem with this, or it doesn’t make any sense, or some information in here is wrong and you’re sure it’s wrong, you can e-mail me at ''@rutgers.edu... On to the meat.

Table of contents

  1. Introduction
  2. Variables and basic I/O
  3. Control statements
  4. Functions and prototypes
  5. Arrays, structures, and type definitions
  6. The C preprocessor
  7. Pointers
  8. File and stream I/O
  9. Esoterica
  10. Multiple-module development

Useful things

⇑Back to main page⇑