C Programming Language Basics Introduction
Tags: cprogramming, programming, tutorial, beginners
Published: 2021-01-18 15:23:38

In this course, we will study the C Programming Language Basics Introduction and its advantage and disadvantage. So let us start.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/nph4c18850pzbs5pr6b1.jpg)
<h2>C Programming Language Basics Introduction</h2>
C is a procedural oriented programming language (POP). This language was developed by Dennis Ritchie in 1972 at the bell laboratory. There was a B language before the C language was invented. The B language was developed by Ken Thompson in1970 at bell laboratories. There were many limitations in the B language. And to remove all the limitations Dennis Ritchie developed C.

C language is a very popular language. C language is believed to be the origin of other programming languages. In order to learn a different programming language, we must have knowledge of the C language first. C is a very simple language. There are many languages like C++, C#, Java, PHP, etc which have adopted the syntax of the C language.

<b>Learn More</b> <a href="https://usemynotes.com/c-programming-language-basic-introduction/">C Programming Language Basic Introduction</a>

The C language was standardized in 1989 by the American National Standards Institute (ANSI) and after that by the International Standards Organization (ISO).

The latest version of the C language is C11.
<h2>What are the advantages and disadvantages of c programming?</h2>
<table>
<tr>
<td><strong>Advantages of C Programming</strong></td>
<td><strong>Disadvantages of C Programming</strong></td>
</tr>
<tr>
<td>Powerful and efficient language</td>
<td>Concept of OOPs</td>
</tr>
<tr>
<td>Portable language</td>
<td>Run-time checking</td>
</tr>
<tr>
<td>Built-in functions</td>
<td>Concept of namespace</td>
</tr>
<tr>
<td>Quality to extend itself</td>
<td>Lack of exception handling</td>
</tr>
<tr>
<td>Middle-level language</td>
<td>Constructor or destructor</td>
</tr>
<tr>
<td>System programming</td>
<td>Low level of abstraction</td>
</tr>
</table>
<h2>Advantages of C Programming</h2>
<h3>Powerful and efficient language</h3>
C is a type of robust language and it contains various data types. To perform various operations it has many operators that provide a vast platform.
<h3>Portable language</h3>
C is a very flexible language. It is a machine-independent language that helps us to write code in any machine and it can be shared between different machines without any change in the code.
<h3>Built-in functions</h3>
There are 32 keywords in C. The functions in the C program can be made easier with the help of the keywords.
<h3>Quality to extend itself</h3>
The c programming language has the ability to extend itself. As we all know that the C library is a set of functions that can be easily used and the functions in the C Standard Library can be added which will help in making the code simpler.
<h3>Middle-level language</h3>
C is a type of middle-level programming language that means it can support both the high-level programming language and low-level programming language. In this, we support low-level programming kernels and drivers. It supports high-level programming system software applications.
<h3>System programming</h3>
C follows the system-based programming system that means the programming is done for the hardware devices.
<h2>Disadvantages of C Programming</h2>
<h3>Concept of OOPs</h3>
C is a vast language but it supports OOPs (Inheritance, Polymorphism, Encapsulation, Abstraction, Data Hiding). C follows a simply procedural programming approach.
<h3>Run-time checking</h3>
In the C programming language, we can not find bugs and errors after every line of code. The compiler shows the errors and bugs after the completion of the code. Due to this, the checking of errors in a large code becomes difficult.
<h3>Concept of namespace</h3>
In C the concept of namespaces is not implemented.
<h3>Lack of exception handling</h3>
Exception Handling is the most important feature of programming languages. Exception Handling helps us in the detection of the error and to give a correct response to it.
<h3>Constructor or Destructor</h3>
C does not use a constructor or destructor. Constructors & Destructors only supports Object-Oriented Programming.
<h3>Low level of abstraction</h3>
C is a small and core machine language in which there are minimum data hiding and exclusive visibility which affects the security of the language.
<h2>What are the c programming basics to write a program?</h2>
Here are a few commands and syntax used in c programming to write a simple c program. So let us start.
<table>
<tr>
<td><strong>C basic command</strong></td>
<td><strong>Explanation</strong></td>
</tr>
<tr>
<td>#include<stdio.h></td>
<td>This is a preprocessor command that includes a standard input output header file from the c library before compiling a c program.</td>
</tr>
<tr>
<td>Int main()</td>
<td>This is the function from where the execution of any c program begins</td>
</tr>
<tr>
<td>{</td>
<td>This indicates the beginning of the main function.</td>
</tr>
<tr>
<td>/* comments*/</td>
<td>Whatever is given inside the command”/* */” in any program, won’t be considered for compilation and execution.</td>
</tr>
<tr>
<td>printf("hi");</td>
<td>Printf command prints the output onto the screen</td>
</tr>
<tr>
<td>getch();</td>
<td>This commands waits for any character input from the keyboard</td>
</tr>
<tr>
<td>Return 0;</td>
<td>This command terminates c program and returns 0.</td>
</tr>
<tr>
<td>}</td>
<td>This indicates the end of the main function.</td>
</tr>
</table>