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:
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.
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:
#include<Servo.h> // used for the servo
#include<NewPing.h> // used for the ultrasonic sensor
#include<ArduinoRobot.h> // motor control
Variables and Data Types
Variables and Data TypesProvides an understanding of working with Variables, Data Type and strings.
FunctionsWorking with functions, math an timing
StatementsWorking with statements: if, else if, else, for, while and boolean operators.