Categories: C

C Programming Language

C is a general-purpose, procedural, imperative computer programming language developed at AT & T’s Bell Laboratories of USA in 1972. It was designed and written by a man named Dennis Ritchie. C programming is considered as the base for other programming languages, therefore it is known as the mother language. Possibly why C seems so popular is because it is reliable, simple, and easy to use.

Why learn C?

This is one of the most frequent query of young coders, that is why C and not any other language. There are several reasons for it :

  • It is believed that one cannot directly learn C++ or Java, therefore, we need to have a basic understanding of the elements of programming(C is easy to learn).
  • Major parts of popular operating systems like Windows, UNIX, Linux are still written in C.
  • Even today when it comes to performance nothing beats C.
  • It can handle low-level activities.
Key points :
  • C language is case-sensitive in nature.
  • It is a compiled language (meaning: a programming language whose implementations are typically compilers )
  • It supports the feature of both low-level and high-level language, therefore considered a middle-level language .
  • C Compiler is platform-dependent.
  • It is known as a mother language because most of the compilers and JVMs are written in C language.
  • “?:” is the only ternary operator in C language.
  • “sizeof” is the only operator which is also a keyword.
  • C provides constructs that map efficiently to typical machine instructions.
C Program:

A C program can vary from 3 lines to millions of lines and its file extension is “.c”; for example, program1.c. You can use “vi”, “vim” or any other text editor to write your C program into a file

Note: let’s take a look at a simple C program in the next post.C Program – Structure

Follow Me

If you like my post please follow me to read my latest post on programming and technology.

Instagram

Facebook

View Comments

Share
Published by
Rabecca Fatima

Recent Posts

Minimum Cost to Paint Houses with K Colors

A builder plans to construct N houses in a row, where each house can be…

1 day ago

Longest Absolute Path in File System Representation

Find the length of the longest absolute path to a file within the abstracted file…

3 weeks ago

Efficient Order Log Storage

You manage an e-commerce website and need to keep track of the last N order…

1 month ago

Select a Random Element from a Stream

You are given a stream of elements that is too large to fit into memory.…

1 month ago

Estimate π Using Monte Carlo Method

The formula for the area of a circle is given by πr². Use the Monte…

2 months ago

Longest Substring with K Distinct Characters

Given an integer k and a string s, write a function to determine the length…

2 months ago