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

Square Root of Integer

Given an integer A. Compute and return the square root of A. If A is…

1 year ago

Build Array From Permutation

Given a zero-based permutation nums (0-indexed), build an array ans of the same length where…

1 year ago

DSA: Heap

A heap is a specialized tree-based data structure that satisfies the heap property. It is…

1 year ago

DSA: Trie

What is a Trie in DSA? A trie, often known as a prefix tree, is…

1 year ago

Trees: Lowest Common Ancestor

What is the Lowest Common Ancestor? In a tree, the lowest common ancestor (LCA) of…

1 year ago

Binary Search Tree (BST)

A Binary Search Tree (BST) is a type of binary tree that satisfies the following…

1 year ago