Monday, 29 January 2018

Introduction

What is C ? 
 
          C is a procedural programming language developed by Dennis Ritchie in 1972 at Bell Laboratories. It is a middle level language and is written using assembly language ( low level language ). C is easy and fun to learn and it is mainly used to develop real time applications. Even though a lot of high level languages like Java and Python has gained popularity but when it comes to performance, C is unbeatable. Major portions of operating systems like Unix, Linux and Windows are written using C. The other real world usage of C includes device drivers, compilers and interpreters, database systems, text editors and may other utilities. A good understanding of the C language elements lays down the foundation to succeed in the world of programming and solid foundation will help you grab advanced concepts like Object Oriented Programming ( OOP ) offered by other languages like C++ and Java. For a skilled C programmer, learning any other programming language is a cakewalk



C Development Environment Setup
 
         If you are using windows, just download an Integrated Development Environment ( IDE ) like Borland C++ or Dev C++, install it & start writing programs. You can simply google for "C compiler for windows". You get an integrated development environment with an editor & compiler. Most of these IDEs have support for both C and C++ languages. Write your program, save it with .c extension, compile & run.
On a Linux platform, GCC needs to installed and most of the times it is installed by default on your system. You can use any editor like emac, vim or gedit. Just type your program, save it with .c extension, compile and run.


Compile : On the console, type gcc -o my_program my_program.c ( assuming your program file is saved  as "my_program.c " ).
 

Run       : On the console, type ./my_program

No comments:

Post a Comment