facebook twitter googleplus

C Tutorial

C Introduction C Installation C Keywords and Identifier C Variables C Constants C Data Types C Input/Output C Operators C Introduction Examples

C Control Flow

C if...else C for loop C while loop C break and continue C switch case C goto Control Flow Examples

C Functions

C Function C User-define Function C Function Types C Recursion C Storage Class C Function Examples

C Pointers

C Pointers C Pointers & Arrays C Pointers and Functions C Memory Allocation Array and Pointer Examples

C Strings

C Strings C String Functions C String Examples

Structure and Union

C Structure C Struct and Pointers C Struct and Function C Unions C Struct Examples

C Programming Files

C Files Input/Output C Files Examples

Additional Topics

C Enumeration C Preprocessors C Standard Library C Programming Examples

C Installation and Environment Setup

Before starting doing programming in C language, first of all you need to install the C compiler in your operating system. Now a day, C and C++ both programming language comes as a single unified package, which fulfil the requirement of both C and C++ program development.

What is Compiler

When we write instructions or code for computer (computer program), they are written in high level language (english language), which can only understand by human being but a computer cannot. The computer only understand the machine language (0 1 format) which we cannot understand easily. For this reason, we need a software that converts the high level language (program) written by us into a machine language for computer. This machine language is understood by computer and they follows. This type of software is called compiler.

There are several compilers available in the market that works on different operating systems. For example, some popular compilers that work on MS-DOS are Turbo C, Turbo C++, and Microsoft C++. Visual C++ and Borland C++ compilers are compatible with Windows operating system where as gcc compiler works with Linux.

Note that the Turbo C, Microsoft C++ and Borland C++ compiler also contain a C compiler bundled with them.

Steps to Install C compiler and Environment Setup

Step 1: Download Turbo C++ software

First of all you need to download Turbo C++ software through Google.

 download turbo c software

Step 2: Download Turbo C++

Now, click on the link and you will be find an option to download turbo C++ software. Click on it to download.

download turbo c

Step 3: Create turbo c directory in c drive and extract

Now, you will need to create a turbo c directory inside the C drive and extract the downloaded file in the same. Click on INSTALL application file for installation.

 create turbo c directory

Step 4: Permission to install C

When you click on INSTALL application file, the application will prompt a window asking for permission to install or not, press enter to install C.

 permission to install

Step 5: Choose C drive

After pressing enter to install an application a window will appear to choose a drive. Choose C drive.

change drive to c

Step 6: Enter the source path

Enter the source path (TURBOC) in which you want to install and click enter.

enter the source path

Step 7: Start installation

Select the Start Installation option using the down arrow key and then press enter to start installation.

start installation

Step 8: C or C++ is installed

Turbo C++ is properly installed in your operating system. If you want to read the document clink enter or close the window.

c is installed

Step 9: Click on TC application in BIN folder

Now, select TC application, right click on it and run the application or double click to start programming.

click on TC application in bin folder

Step 10: A blue window will appear

Now, the C environment is ready to start coding in C language and execute your program.

program screen

Write your first program to the print "Welcome in C programming" is given below.


Welcome in C programming