Hey guys, what is up. I hope so you all are good and doing well. In this particular post, we will be talking about what is programming language. Their types, and what is the need for types of programming languages.
(Updated on 23/9/2021)
So now let’s start.
What is a programming language?
A program or a code contains a set of statements and instructions that tells a computer especially a CPU what to do. To have the desired solution to a particular problem or a task. Programs are written with the help of programming/ coding languages. A programming language is a normal language used to communicate with the CPU.
Programming languages are of two types:
This type of language is named ‘low’ because that is related to how different parts of a computer communicate with each other to perform the desired task. These languages are based on machine orientation. They also require complete and good knowledge of hardware and its functioning.
Low-level languages are further classified into 2 types:
- Machine language
- Assembly language
Machine language is also known as machine code. The computer understands this language only. A computer never translates this into another language. All the instructions in machine language are in the form of 0 or 1 also known as binary numbers. There is no limit of usage of 0 and 1. This looks like this:
This binary form is very different to understand by humans and to understand this high calculation is required. To understand this language assembly language plays a vital role.
Assembly language is used so that humans can read and understand it. This is the first in the improvement of coding structure. It comprises symbols and letters. Here comes the role of assembler. It is used to translate assembly language to machine language.
ADVANTAGE OF ASSEMBLY LANGUAGE OVER MACHINE LANGUAGE:
As we know machine language or machine code are a bit difficult to understand. Assembly language is also difficult to understand in comparison to machine language. Because of this high-level language was introduced.
HIGH-LEVEL PROGRAMMING LANGUAGE:
A high-level language is a coding or a programming language. It uses English alphabets/characters as well as numbers and mathematical symbols. Mathematical symbols comprise of +,-,/,%, and many others in giving instructions. The term ”programming language” refers to the high-level language, not low-level language. It is used by all the programmers to write codes.
High-Level Language constitutes:-
Learning programming does not mean learning another human language. If you want to learn this you need to learn commands, logic, and syntax. These 3 things are the root of programming. Commands, logic, and syntax are like learning vocabulary and grammar.
Advantages of programming language:
Readability: High level language is closer to natural language because of that they are easier to learn and understand quickly.
Machine independent: High level language or programming languages have the advantage of carrying a program between different machines.
Easy debugging: We can easily find bugs and errors in any code.
Uses of programming language:
The program code of most of the programming languages is portable and you can run these codes on different systems on different compilers. Without any modifications on different devices. Both machine and assembly language are hardware-dependent. They may or may not work on different hardware. They need changes so that they can work on different devices.
In the upcoming post, you will be getting brief information about Tokens and Data Types in C++ So stay tuned for an upcoming post. Also if you haven’t seen my previous post about technology then go and visit.