Introduction to C programming language | CoderGuy

Hello everyone this is Ujjwal Sinha. In this article I am going to introduce you with C programming language and it's use.

WHAT IS C?

C is a computer programming language that is developed in 1972 at Bell Telephone Laboratory in U.S.A by Dennis Ritchie.C was developed from a computer language BCPL (Basic combined programming language later known as B language).developed at MIT in the '60s.
C was the basics language to write everything from operating systems (Windows and many others) to complex programs like the Oracle database, Git, Python interpreter and more.C is generally used for system programming as well as application programming, it is generally used for both high and low-level language.  C language generally uses simple English words like .if ,else,while ,for,etc. it can use only 32 keywords for C programming and This language is used user-friendly language therefore for the user it is very easy to find bugs, easy to check error and also we can easily understand these programming Syntex.

Introduction to C Programming
Introduction to C Programming

C is the core language of other languages i.e when we understand properly these languages then we can easily learn other programming languages like Pascal, C++, C#, etc.
C is an extensible language i.e it enables the user to add his own function to the C library. C it contains a large number of builts in function and operations. In C language Has modularity i.e we can be divided into different identifiable parts of a large programming. The C has not been revised after ANSI C was created in 1983 therefore the C language has Stability. It supports pointer to refer to computer memory which helps in arrays and structures.C programming has a group of blocks called function. A function as a Sub-routine that may include one or more statements depending on specifics tasks.its has more than one section.

Documentations Section
Link Section
Definition Section
Global Declaration Section
main()function section
{
Deleration part;
Executable part;
}
Sub program section
Function 1
Function 2
...........
...........
Function n
(Function 1 to function n is user-defined functions)
As For Example

Write a program in C to add two numbers.

#include<stdio.h>
#include<conio.h>
Voidmain()
{
  int a,b,sum=0;
  clrscr();
printf("enter two numbers:-");
scanf("%d\t%d",&a,&b);
sum=a+b;
printf("Sum=%d",sum);
getch();
}
Output
 enter two numbers:- 6 7
 Sum=13

Uses of C Programming


  1. As a middle-level language, C combines the features of both high-level and low-level languages. It can be used for low-level programming, such as scripting for drivers and kernels and it also supports functions of high-level programming languages, such as scripting for software applications, etc.
  2. C is a structured programming language that allows a complex program to be broken into simpler programs called functions. It also allows free movement of data across these functions.
  3. Various features of C including direct access to machine level hardware APIs, the presence of C compilers, deterministic resource use and dynamic memory allocation make C language an optimum choice for scripting applications and drivers of embedded systems.
  4. C language is case-sensitive which means lowercase and uppercase letters are treated differently.
  5. C is highly portable and is used for scripting system applications which form a major part of Windows, UNIX, and Linux operating systems.
  6. C is a general-purpose programming language and can efficiently work on enterprise applications, games,
  7.  C language has a rich library that provides a number of built-in functions. It also offers dynamic memory allocation.
  8. C language has a rich library that provides a number of built-in functions. It also offers dynamic memory allocation. 
  9. C implements algorithms and data structures swiftly, facilitating faster computations in programs. This has enabled the use of C in applications requiring higher degrees of calculations like MATLAB and Mathematician.
       IF U LIKE THIS ARTICLE PLEASE LIKE, Follow AND SHARE THIS WITH UR FRIENDS & FAMILY. For any suggestions and question please comment

Post a Comment

1 Comments

  1. Theory to samaj aa gya
    Practical ka bhi video you tube pe dalke aur telegram ka link do ☺☺

    ReplyDelete

Enter your message here