Introduction to C

20/09/2015

A BRIEF HISTORY OF C

The ‘C’ programming language was developed in the early 70’s by Dennis Ritchie while working for Bell Labs. In fact Dennis Ritchie created two substantial contributions to the Computing industry, the first was the UNIX Operating System and the second was the ‘C’ programming language.

Today there are many newer programming languages that have borrowed from ‘C’, they include:

  • C++
  • Go
  • Java
  • JavaScript
  • C#
  • Objective-C
  • Perl
  • PhP
  • Python

Traditionally, if you have programmed in C for sometime, generally you should be able to adapt to other programming languages rather easily, in general, though this may not be the case all the time.

There are some basic components to writing a program in “C”, we will start of with Pre-processor commands.

PREPROCESSOR COMMANDS

These commands tell the compiler to do preprocessing before doing actual compilation. For example , the #include <Servo.h> is a preprocessor command which tells a C compiler to include the Servo.h file before compiling. The three preprocessing commands we will make use of initially for our Roverbot program will be: