C Basics

Pre Requisites

User Rating:  / 6

Before proceeding with learning C programming language you should have a basic understanding of Computer Programming terminologies. A basic understanding of any of the programming languages will help you in understanding the C programming concepts.

Editor & Compiler

Editor: - Editor is utility where you write your code.

Compiler: - A compiler turns the program that you write into an executable format that computer can understand.

Compiler vendors provide an Integrated Development Environment (IDE) which consists of an Editor as well as the Compiler

There are several such IDEs available in the market targeted towards different operating systems. For example, Turbo C, Turbo C++ and Microsoft C are some of the popular compilers that work under MS-DOS; Visual C++ and Borland C++ are the compilers that work under Windows, whereas gcc compiler works under Linux.

If you are a beginner you would be better off using a simple compiler like Turbo C or Turbo C++. Once you have mastered the language elements you can then switch over to more sophisticated compilers like Visual C++ under Windows or gcc under Linux.


For Turbo C Compiler (Download Link)

Start the compiler at C>prompt. The compiler (TC.EXE is usually present in C:\TC\BIN directory or in any other drive where you have installed).

Select New from the File menu.

Type the program.

Save the program using F2 by providing proper name say HelloWorld.c

Use Ctrl + F9 to compile and execute the program.

Use Alt + F5 to view the output.

When we compile the program its machine language equivalent is created and stored as EXE file in bin directory of Turbo C. This file is called an executable file.

Always save source file with extension .C only.



                                                                                          About Us  ||  Contact Us  ||  Terms & Conditions  ||  Privacy Policy 

Referral Banners