Wednesday, May 13, 2020

Before knowing c language,we know about the basic terminology of computer   

what is computer:

 computer is a electronic machine which can take some inputs and give output. It may be anything which takes input and give output is called computer.   

Difference  between electrical and electronic device

the electrical device produce current which means it has high voltage of current and its works on AC(alternative current) , but electronic device has not      voltage of current and its work on DC(dynamic current). Means electrical device can harm to man but electronic device not harm the people.                                                                                                                                      

  

 why we use c language:                          

we know that computer only understand binary number means (0 or 1) . Everything who has been store in computer memory is in form of (0 or 1). to understand (0 and 1) is very difficult.  So if we write anything in c language it is easy to understand rather than machine language (0 ०r 1) form.


   What is language:

language is a medium to conversation with two or more people each other. To share emotion, feeling etc . In same way to communicate with computer we use any programming  language like c, c++, java, python, swift, c# etc.




The programming languages can be classified into two types   


1)Low level language
2)High level language 

Low level language:


low level language can be categorised into two parts machine level language and assembly language 

Machine level language:

computer can understand only digital signal or binary digits(0 or 1). This is called machine level language. It is hard to understand  and write programs in machine level language.   


Assembly language:

                                                                                                                    assembly language reduced the difficulties of the machine level language. In assembly language instruction are given in English word like mov, add, sub so it is easier than machine level language. But low level language is related with hardware. In assembly language data store in register and each computer has different set of register so it is not portable.   But low level language intract with hardware so it's execution time is fast.




   High level language:


High level language is portable and machine independent means do not intract with hardware directly. These are English like language so it easy to understand and write program in high level language we used compiler or interpreter to translate these language into machine language 


   Translater:

 mainly translater translate high level language into machine level language . It can be classified into three categories  

1)Assembler 
2)compiler   
3)Interpreter 

Assembler:

 assembler is used to translate assembly language (low level language) to machine level language.


  Compiler:

compiler and interpreter  both are mainly used for translate high level language to machine level language but compiler read a whole program in a time then find error in program.


     Interpreter:


 interpreter also translate high level language to machine level language but it check program statement wise . After checking one statement it convert statement into machine code and execute this process continues till last statement. 



Labels:

1 Comments:

At May 13, 2020 at 11:07 AM , Blogger Unknown said...

Gajab bhai....

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home