Introduction to C

What is C?

C is a programming language developed at AT & T’s Bell Laboratories of the USA in 1972. It was designed and written by Dennis Ritchie. It is a low-level language.

C was one of the earliest language, which was simple to understand, reliable and easy to use. It was developed to write operating system.

C is probably the most widely known programming language. Most of the universities use C as the first introductory course in computer science.

Why Study C?

In an industry where newer languages, tools and technologies emerge and vanish day in and day out, a language that has survived for more than 3 decades.

1) To understand the basic structure of a programming language. One should first learn all the language elements very thoroughly using C language before migrating to C++, C# or Java.

2) To give yourself a base to be able to understand languages like C++ or Java, which have things like classes, objects, inheritance, polymorphism, templates, exception handling, references, etc. Learning these complicated concepts when you are not even comfortable with the basic language elements is not recommended.

3) Major parts of popular operating systems like Windows, UNIX, Linux is written in C. Even today when it comes to performance (speed of execution) nothing beats C.

4) C can be regarded as one of the fastest programming language.

5) Many popular gaming frameworks have been built using C language. It can be regarded as the language of games. Needless to say, such games won’t become popular if they takes a long time to move the spaceship or to fire a bullet. To match the expectations of the player the game has to react fast to the user inputs. This is where C language scores over other languages.

I hope these are very convincing reasons why one should learn C.

What can you do with it?

A popular myth about C is that no one uses it anymore.

  1. Make operating systems
  2. Make Graphical User Interface (GUI). Photoshop, Adobe Premiere, and Adobe Illustrator are created using C!
  3. Design Compilers
  4. Build games
  5. And do much more fun and exciting things.

Syntax

The syntax of C programming language is made in such a way such that a beginner directly understands the code working. In my opinion it is very easy to shift to any programming language after learning C.

#include <stdio.h>					
Int main()							
	{  
 		printf(“Hello World!”);
		return 0;
	}

Output:

Hello World!

Community

C being one of the oldest language, have a large worldwide community read to help you at any time of the day.

C Language

Do you know?
Introduction to C This article is contribute by Hitesh Marwaha If you want share your knowledge on Study4Geeks then go to login section.