C Programming Tutorial

C Language

Table of Contents

Here is a table of contents for our C Programming Tutorial:

Introduction Basics if Structure
Loops Arrays Functions
Pointers Preprocessors Structures
File Extension Review

The C Programming Language

The C Programming Language is a software developing language that is widely used. It runs fast, basic, easy to learn, mature, and helps you in learning programming. Most major operation systems, for example, are developed in C (Windows, Linux, Apple OS X).

History of C

The C language is developed in Bell Labs, by D. Ritchie. The Bell Labs first produced CPL, Combined Programming Language, then simplifying it, developed BCPL, Basic Combined Programming Language. Then, B Language (first letter in BCPL), was developed. These languages above are very inconvenient to use and complicated, so D. Ritchie simplified based on the B Language, and released C (second letter in BCPL). The C Programming Language has become very mature since its release in 1972.

Preparation: C Compiler

Before you can program C, you will need a C compiler. The compiler will turn your written program into something that the computer can execute. We recommend installing a Linux Ubuntu operation system (which is developed specifically for programmers), either dual-booting the computer or using a virtual machine. That way, you can program C with the gcc compiler that is already installed, you will just need emacs, which is the development environment that allows you to program many languages. If you are on Windows, you can use MinGW with emacs. If you are on Apple OS, Apple Xcode would be a good choice. Once you install your compiler successfully and got familiar with it, you can start programming C!

Guide for downloading Ubuntu:

Downloading Ubuntu

Guide for creating a virtual machine in VirtualBox:

Creating a Virtual Machine

Guide for starting Ubuntu for the first time (in both VirtualBox and dual-booting):

Starting Ubuntu

Guide for using Ubuntu:

Using Ubuntu

Here is a guide for installing MinGW and emacs on Windows:

Installing MinGW and emacs