Sunday, January 6, 2019

Introduction to computer language

c, programming, language, computer language, c tutorials
c

What is language? 
The languages are way to communication to the another person, we use languages for sharing or expressing our thoughts, views, ideas, knowledge and opinion to the peoples. The languages are play very important role in our daily life. The languages are the way to understand anything in the world in very easily because it is easy to understand and understand by the people.We use many language in our daily life like English, Hindi, Germany, french etc for communicate to the another persons.

How many types of languages we use?
There are mainly two types of languages that we are use.
1. Natural or Human Languages
2. Computer Languages

Natural Languages:
The languages which are used to communication between human to human is called natural language like Hindi, English, French, Germany etc. The language are very important in our life without language we cannot effectively and easily shares or expressing our thoughts, ideas, knowledge that are on our mind to the another person. The languages are the ways to understand easily anything in the world. 


Computer Languages:
We all know that the computer system cannot understand the natural or human speaking languages because they are just machine they have no any emotions and feeling to understand anything like human being. Whenever we wants computer do something for ours desired purpose then first of all we need to give instruction to computer languages in their understandable language that language are know computer language. So we use computer languages to communication between human to computer system. there are many computer language in the world like C , C++, Java, Python, Ruby, COBOL, ALGOL etc. 

Type of computer languages:-
1. Machine Language
2. Assembly Language
3. High Level Language

Machine Language:
Machine language is called the language of computer that the computer system understand only. The machine language in the computer world is represented by the consists of two binary digits that 0's and 1's.The machine language is written by using these sequence of combination of two binary digits 0’s and 1’s.
In machine language whenever we want computer do something, then we write everything by using combinations of 0’s and 1’s sequences. Using this language whatever you want to input to computer  has to be supplied in the forms of sequence of of 0’s and 1’s .
For Example: character A May be represented as 01100101 ,0 itself may be represented as 01001000 and so on.
Features of this languages are:-
1. The machine language consists of sequence of two binary digits that is of 0’s and 1’s.
2. Machine languages are called natural languages of computers.
3. The machine instruction(code) internally converted in sequences of combinations 0's and 1's that further also converted into electric signals.
4. Each and every instruction, command or operation must be stated in the form of sequences 0's and 1's.
5. Execution of program is very fast if the instruction were written in machine language (instructions) because they are directly understand by the computer system.
6. Machine language (instructions) are the are machine dependent.
7. Machine language is  difficult to write(programs), and very tough modify and error finds from it.
8. The machine language does not required any translator. 
Assembly Language:
Assembly language are commonly called  assembly, asm or symbolic languages. The assembly languages are machine languages but they use some human readable symbols or  code that will easily understand by the human being.
The assembly languages use some human-readable notation for the writing instruction for the computer system. The assembly languages are the depends on computer system architecture, different- different machine supports different assembly languages for process instructions.
In the assembly languages having separate translator to converted instruction to the corresponding machine languages.
The translator are used to converts assembly language instructions to machine language instructions is called assembler. In assembly language symbolic notation are called mnemonics or asm codes.

Features of this languages are:-
1. In the assembly language mnemonics code or notations is used to write  instruction or  programs for computer system, they are small words like Add, Sub, Mul, Div which represent addition, subtraction  and division etc.
2. For writing instructions or programs set of mnemonics are made fixed for a specific  type of machine or computer systems. The instructions are written using these mnemonics but internally converted(translated) into machine language instruction. 3. For translating a assembly instruction into machine instruction a translator is required is called assembler of that language. In assembly language world each and every assembly language have a different-different assembler.
3. Assembler is any system software which is specific for a specific machine.
4. Assembly languages are Easier to understand and modify and error finding.
5. Assembly languages are Easy to locate and correct errors.
High-Level Language:
The high level language is combinations of machine and assembly languages. We have seen that assembly language and machine language, require deep knowledge of computer hardware where as in high level language require you to you
have to know only the instruction like  English languages words.
High level languages are simple languages that are use English like words and mathematical symbols like +, - ,%, /,* etc for its program constructions. High level languages enables programmer to concentrate more on the logic and less on the syntax. In the high level languages also require translator for converting  instruction or program in corresponding machine language instructions is called compiler of interpreter.
Features of this languages are:-
1. In high level languages program are written in simple English like language.
2. In high level language programmer are more concentrate on the programs logic and don't worry about hardware configurations.
3. In high level language every instruction of program is translated into corresponding machine language instructions.
4. High level language are easy write and use and modify.
5. In high level language have very less error prone.
6. In high level language a separate translator is required. 

 

0 comments:

Welcome to you in All Coding Help