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

Select a Random Element from a Stream

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

2 days ago

Estimate π Using Monte Carlo Method

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

3 weeks ago

Longest Substring with K Distinct Characters

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

3 weeks ago

Staircase Climbing Ways

There is a staircase with N steps, and you can ascend either 1 step or…

4 weeks ago

Autocomplete System Implementation

Build an autocomplete system that, given a query string s and a set of possible…

4 weeks ago

Job Scheduler Implementation

Design a job scheduler that accepts a function f and an integer n. The scheduler…

4 weeks ago