Skip to main content

Introduction to c language

Introduction to c


C is a programming language that lets us give a computer very specific commands. C was invented in 1972. It's one of the oldest languages to be used even today! It is one of the most widely used programming languages in the world. It has influenced many popular languages, especially c++. But why do we still use such an old programming language? why not something newer and easier to understand,like python?
Let's find out.

History of C Language

Dennis Ritchie - founder of C language
History of C language is interesting to know. Here we are going to discuss a brief history of the c language.
C programming language was developed in 1972 by Dennis Ritchie at bell laboratories of AT&T (American Telephone & Telegraph), located in the U.S.A.
Dennis Ritchie is known as the founder of the c language.

It was developed to overcome the problems of previous languages such as B, BCPL, etc.
Initially, C language was developed to be used in UNIX operating system. It inherits many features of previous languages such as B and BCPL.

 

Features of c


Simple: C is a structure based language i.e we can divide a big program into multiple parts, which makes it easy to write and understand.

 Efficient and Fast
  • programs written in c are efficient and fast.
  • This is the most critical factor for using c over other languages.
  • c is considered to be "close to the computer ," meaning we can program the computer to do precisely what we want.
Portable: Programs written in C can be run on different types of machines with little or no modifications.  

Memory Management : It allows you to allocate memory at the runtime, that is, it supports the concept of dynamic memory allocation.

Dynamic Memory Allocation- When you are not sure about the memory requirements in your program and want to specify it at the run time, that is, when you run your program, you can do it manually.

Pointers : C language provides a pointer that stores the memory address as its value. Pointers are useful in storing and accessing data from memory. We will study this in detail in our upcoming tutorials.

Case Sensitive : It is pretty clear that lowercase and uppercase characters are treated differently in C. It means that if you write “program” and “Program”, both of them would connote different meanings in C. The ‘p’ in “program” is in lowercase format whereas, the ‘P’ in Program is in uppercase formate.

 Compiler  Based : C is a compiler based language, that is, to execute a code we first need to compile it.Structure Oriented/Modular – C is a structured programming language. This means you can divide your code and task within a function to make it interactive. These functions also help in code reusability.

Comments

Popular posts from this blog

c programming MCQ questions and answers

c programming MCQ  questions and answers 1. Which among the following is the most complete definition of Programming?            a) Programming is a process to solve any logical problems.            b) Programming is a process to solve any numerical problem.            c) Programming is a process to solve any real life problems.            d) Programming is the process of taking an algorithm and encoding it into a notation (using a                    programming language), so that it can be executed by a computer. Solution: (d) Programming is the process of taking an algorithm and encoding it into a notation, a programming language, so that it can be executed by a computer 2. Which of the following controls the way in which the computer system works and give means by which users can interact wit...

array mcq questions in c

1. The elements of an array can be accessed by its            a) name            b) index            c) dimension            d) none of the above Solution: (b) An array is accessed by its index. 2. The elements of array are stored in contiguous memory due to             a) This way computer can keep track only the address of the first element and the addresses                     of  other elements can be calculated.             b) The architecture of computer does not allow arrays to store other than serially             c) Both             d) None Solution: (a) This way computer can keep track only the address of the first element and the addresses of other elements can be calc...