C Programming

The C programming language is a popular and widely used programming language for creating computer programs. C gives maximum control and efficiency to the programmer. If you are a programmer, or if you are interested in becoming a programmer, there are a couple of benefits you gain from learning C:

  • you will be able to read and write code for a large number of platforms
  • C++ is an extension of C, and it is nearly impossible to learn C++ without learning C first. The jump to the object oriented C++ language becomes much easier.

C is also known as Compiled Language. It means when you write your C program, you must run it using C compiler. Using this you turn your program into an executable that the computer can execute. The C program is the human-readable form. Whenever you are executing programs that comes out of the compiler is the machine-readable and in executable form. It means that to write and run a C program, you must have access to a C compiler. The Simplest C Program

#include <stdio.h>
int main()
{

    printf("This is output from my first program!\n");

    return 0;

}


  Output : "This is output from my first program!"

The advantages of C

C is one of a large number of high-level languages designed for general-purpose programming.

  • C is simpler and more compact
  • The reference book is thinner
  • It's usually easier to work out what the program's doing
  • It generates smaller executables
  • It's more portable
  • With good structure and coding practices, it's often just as "safe" as OOP

The reference site for this content is

http://computer.howstuffworks.com/

Back