Introduction of C Programming

Basics of C Programming

  • The extension of C programming is .cpp.
  • Its most used compiler is Turbo C.
  • Its compilers are so many types.
  • C programming is a general-purpose programming language.
  • It is a middle-level programming language because it has both features of high-level and low-level programming language.
  • It is the most practiced programming language because operating systems are also written in the C programming language.
  • It was developed by Dennis M.Ritchie at AT & T Dell Labs.

Features of C Programming

  • It is a highly portable language.
  • It is a general-purpose programming language.
  • It is an internationally standardized programming language.
  • It has both features of high-level programming and low-level programming language.
  • It is a structured programming language.
  • Its compiler is easily available.

Advantages of C Programming

  • It is easy for debugging, testing, and maintaining.
  • It is machine-independent.
  • It has only 22 keywords. So, it is easy to remember.
  • Its compiler is easily available everywhere.
  • It is faster for executing and running.
  • It is suitable for small projects.
  • It is a general programming language.

Disadvantages of C programming language

  • It is not suitable for complex problems.
  • It is difficult to debug when the program size is too long.
  • There is no runtime checking.
  • It doesn’t support the modern programming approach.
  • It may be compile-time overload due to misplacement of the pointer.

Structure of C Programming

Example: Write a Program to find the sum of 5 and 4.

#include<stdio.h>
void main()
{
int a=5, b=4, sum;
sum=a+b;
printf("The sum of 5 and 4 is:%d", sum);
return(0);
}

Its output is:
The sum of 5 and 4 is:9


 

Share