Thursday, September 19, 2019

Features Of C language

we know c is a mid level language
(mid level language also called assembly level language)
c language has various features.Those are

1.Robust Language
2.Portable Language
3.Structured Language
4.Case sensitive Language 
5.Efficient and Fast

Reasons

Robust Language :
c language is easier to use compared with mechine language.c language contain set of built in functions and operators.these functions and operators can used to write any complex programs.
the word robust means strong.c language has strong built in functions so c language is called robust language.

Portable Language :
we can run a c program any operating system.if we write a c program for one type of mechine,we can run that program in another mechine by doing some modifications or without modifications.for example i write hello world code in windows, i want to run same program in linux operating system.then we can run the same code in linux.so it is portable.

Structured Language :
c language has well structure.first we import library files(ex : #include<stdio.h> etc.) then we write main function.then we write body of program.see the picture

so c language is structured language.

Case sensitive Language  :
we use all lower case letters(a,b,c...z) in c language.then only c program will work.for example try to execute this program.
you will get an error because capital Printf doesnot included in c language functions.only small printf function we need to use so c is case sensitive language.

Efficient and Fast :
c language executes the program very fastly.because c languge has compiler.compiler scans entire program once and gives output. suppose take python language it check every line and displays output,so c laguage saves time.compare with python c is fast and efficiently runs the program.
compiler : it is special program(or software in side c language) which traslates or convert high level instructions to low level instructions.


No comments:

Post a Comment

c program to head command implementation

C PROGRAM TO HEAD COMMAND First create a file.i created a file "a.txt" and i have write 20 lines in that file. #include&...