- C Programming Tutorial
- C - Home
- C - Overview
- C - Environment Setup
- C - Program Structure
- C - Basic Syntax
- C - Data Types
- C - Variables
- C - Constants
- C - Storage Classes
- C - Operators
- C - Decision Making
- C - Loops
- C - Functions
- C - Scope Rules
- C - Arrays
- C - Pointers
- C - Strings
- C - Structures
- C - Unions
- C - Bit Fields
- C - Typedef
- C - Input & Output
- C - File I/O
- C - Preprocessors
- C - Header Files
- C - Type Casting
- C - Error Handling
- C - Recursion
- C - Variable Arguments
- C - Memory Management
- C - Command Line Arguments
- C Programming useful Resources
- C - Questions & Answers
- C - Quick Guide
- C - Useful Resources
- C - Discussion
What are the different computer languages?
The programming languages are used to give instructions to the computer in a language which a computer can understand.
Computer languages are classified into three types as follows −
- Machine languages
- Symbolic languages
- High level languages
Computer is a machine. Since, its memory can store only 1’s and 0’s, instructions must be given to the computer in streams of 1’s and 0’s i.e. binary code.
These are easily understandable by the machine.
Programs written in binary code can be directly entered into computer for execution and it is known as machine language.
Advantages of machine language include −
- Execution is very fast.
- It is very difficult to write and read the programs which are in machine language.
- Machine instructions are difficult to remember.
It is also called as assembly language.
An assembly program contains "Mnemonics”.
"Mnemonic” means information which can be memorized easily in the form of abbreviations.
The advantages of symbolic languages include −
Assembly language is easy to read and write when compared to machine language.
Mnemonics are easy to remember.
The disadvantages include −
- Assembly programs are machine dependent.
- Execution is slow.
- "Assembler” converts the assembly language into machine language.
High level Languages
A language that is close to native language is called high level language.
It has control structures, I/O facilities.
For example, FORTRAN, COBOL, PASCAL, C, C++ etc.
The advantages of high level languages are as follows −
- Machine independence i.e. programs are "Portable”.
- Easy to learn and understand.
- Takes less time to write programs.
The disadvantages are as follows −
High level language programs requires a translator for conversion into machine language.
‘Compilers’ (or) ‘Interpreters’ are used for converting high level language into machine language.
Compiler converts entire instructions in the program at a time. Interpreter converts one statement at a time.
- Related Articles
- What are different types of DBMS languages?
- Computer languages
- What are the different benefits of using programming languages in compiler design?
- What are the different access technologies in computer networks?
- What are the different network properties in Computer Architectures?
- What are the different types of Castings in computer networks?
- What are the different types of NAT in computer networks?
- What are different levels of abstraction in Computer Architecture?
- What are the different levels of Code Scheduling in computer architecture?
- What are different methods of parallelism in Parallel Computer Architecture?
- What are the closure properties of Regular languages?
- What are different types of RAM (Random Access Memory) in computer architecture?
- What are the differences between “untyped” & “dynamically typed” programming languages?
- What are the relationships between programming languages and parallel architectures?
- What are the attributes of programming languages in compiler design?