Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • Software and Tools
    • School Learning
    • Practice Coding Problems
  • Go Premium
  • DSA
  • Practice Problems
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • Data Science
  • Machine Learning
  • Courses
  • Linux
  • DevOps
  • SQL
  • Web Development
  • System Design
  • Aptitude
  • GfG Premium
Open In App
Next Article:
Biology
Next article icon

Introduction to Programming Languages

Last Updated : 29 Mar, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

Introduction:

A programming language is a set of instructions and syntax used to create software programs. Some of the key features of programming languages include:

  1. Syntax: The specific rules and structure used to write code in a programming language.
  2. Data Types: The type of values that can be stored in a program, such as numbers, strings, and booleans.
  3. Variables: Named memory locations that can store values.
  4. Operators: Symbols used to perform operations on values, such as addition, subtraction, and comparison.
  5. Control Structures: Statements used to control the flow of a program, such as if-else statements, loops, and function calls.
  6. Libraries and Frameworks: Collections of pre-written code that can be used to perform common tasks and speed up development.
  7. Paradigms: The programming style or philosophy used in the language, such as procedural, object-oriented, or functional.

Examples of popular programming languages include Python, Java, C++, JavaScript, and Ruby. Each language has its own strengths and weaknesses and is suited for different types of projects.

A programming language is a formal language that specifies a set of instructions for a computer to perform specific tasks. It's used to write software programs and applications, and to control and manipulate computer systems. There are many different programming languages, each with its own syntax, structure, and set of commands. Some of the most commonly used programming languages include Java, Python, C++, JavaScript, and C#. The choice of programming language depends on the specific requirements of a project, including the platform being used, the intended audience, and the desired outcome. Programming languages continue to evolve and change over time, with new languages being developed and older ones being updated to meet changing needs.

Are you aiming to become a software engineer one day? Do you also want to develop a mobile application that people all over the world would love to use? Are you passionate enough to take the big step to enter the world of programming? Then you are in the right place because through this article you will get a brief introduction to programming. Now before we understand what programming is, you must know what is a computer. A computer is a device that can accept human instruction, processes it, and responds to it or a computer is a computational device that is used to process the data under the control of a computer program. Program is a sequence of instruction along with data. 

The basic components of a computer are: 

  1. Input unit
  2. Central Processing Unit(CPU)
  3. Output unit

The CPU is further divided into three parts-  

  • Memory unit
  • Control unit
  • Arithmetic Logic unit

Most of us have heard that CPU is called the brain of our computer because it accepts data, provides temporary memory space to it until it is stored(saved) on the hard disk, performs logical operations on it and hence processes(here also means converts) data into information. We all know that a computer consists of hardware and software. Software is a set of programs that performs multiple tasks together. An operating system is also software (system software) that helps humans to interact with the computer system. 
A program is a set of instructions given to a computer to perform a specific operation. or computer is a computational device that is used to process the data under the control of a computer program. While executing the program, raw data is processed into the desired output format. These computer programs are written in a programming language which are high-level languages. High level languages are nearly human languages that are more complex than the computer understandable language which are called machine language, or low level language. So after knowing the basics, we are ready to create a very simple and basic program. Like we have different languages to communicate with each other, likewise, we have different languages like C, C++, C#, Java, python, etc to communicate with the computers. The computer only understands binary language (the language of 0’s and 1’s) also called machine-understandable language or low-level language but the programs we are going to write are in a high-level language which is almost similar to human language. 
The piece of code given below performs a basic task of printing “hello world! I am learning programming” on the console screen. We must know that keyboard, scanner, mouse, microphone, etc are various examples of input devices, and monitor(console screen), printer, speaker, etc are examples of output devices. 

main()
 {
 clrscr();
 printf(“hello world! I am learning to program");
 getch();
 } 

At this stage, you might not be able to understand in-depth how this code prints something on the screen. The main() is a standard function that you will always include in any program that you are going to create from now onwards. Note that the execution of the program starts from the main() function. The clrscr() function is used to see only the current output on the screen while the printf() function helps us to print the desired output on the screen. Also, getch() is a function that accepts any character input from the keyboard. In simple words, we need to press any key to continue(some people may say that getch() helps in holding the screen to see the output). 
Between high-level language and machine language, there are assembly languages also called symbolic machine code. Assembly languages are particularly computer architecture specific. Utility program (Assembler) is used to convert assembly code into executable machine code. High Level Programming Language is portable but requires Interpretation or compiling to convert it into a machine language that is computer understood. 
Hierarchy of Computer language - 

There have been many programming languages some of them are listed below: 

CPythonC++
C#RRuby
COBOLADAJava
FortranBASICAltair BASIC
True BASICVisual BASIC 
 
GW BASIC
QBASICPureBASICPASCAL
Turbo PascalGOALGOL
LISPSCALASwift 
 
RustPrologReia
RacketSchemeSimula
PerlPHPJava Script
CoffeeScriptVisualFoxProBabel
Logo 
 
Lua 
 
Smalltalk
MatlabFF#
DartDatalogdbase
HaskelldylanJulia
kshmetroMumps
NimOCamlpick
TCLDCPL
CurryActionScriptErlang
ClojureDarkBASCICAssembly

Most Popular Programming Languages -  

  • C
  • Python
  • C++
  • Java
  • SCALA
  • C#
  • R
  • Ruby
  • Go
  • Swift
  • JavaScript

Characteristics of a programming Language - 

  • A programming language must be simple, easy to learn and use, have good readability, and be human recognizable.
  • Abstraction is a must-have Characteristics for a programming language in which the ability to define the complex structure and then its degree of usability comes.
  • A portable programming language is always preferred.
  • Programming language's efficiency must be high so that it can be easily converted into a machine code and its execution consumes little space in memory.
  • A programming language should be well structured and documented so that it is suitable for application development.
  • Necessary tools for the development, debugging, testing, maintenance of a program must be provided by a programming language.
  • A programming language should provide a single environment known as Integrated Development Environment(IDE).
  • A programming language must be consistent in terms of syntax and semantics.

Basic Terminologies  in Programming Languages:

  • Algorithm: A step-by-step procedure for solving a problem or performing a task.
  • Variable: A named storage location in memory that holds a value or data.
  • Data Type: A classification that specifies what type of data a variable can hold, such as integer, string, or boolean.
  • Function: A self-contained block of code that performs a specific task and can be called from other parts of the program.
  • Control Flow: The order in which statements are executed in a program, including loops and conditional statements.
  • Syntax: The set of rules that govern the structure and format of a programming language.
  • Comment: A piece of text in a program that is ignored by the compiler or interpreter, used to add notes or explanations to the code.
  • Debugging: The process of finding and fixing errors or bugs in a program.
  • IDE: Integrated Development Environment, a software application that provides a comprehensive development environment for coding, debugging, and testing.
  • Operator: A symbol or keyword that represents an action or operation to be performed on one or more values or variables, such as + (addition), - (subtraction), * (multiplication), and / (division).
  • Statement: A single line or instruction in a program that performs a specific action or operation.

Basic Example Of Most Popular Programming Languages:

Here the basic code for addition of two numbers are given in some popular languages (like C, C++,Java, Python, C#, JavaScript etc.).

C++
// C++ program for sum of 2 numbers
#include <iostream>
using namespace std;

int main()
{
    int a, b, sum;
    a = 10;
    b = 15;
    sum = a + b;
    cout << "Sum of " << a << " and " << b
         << " is: " << sum; // perform addition operation
    return 0;
}
// This code is contributed by Susobhan Akhuli
C
// C program for sum of 2 numbers
#include <stdio.h>

int main()
{
    int a, b, sum;
    a = 10;
    b = 15;
    sum = a + b;
    printf("Sum of %d and %d is: %d", a, b,
           sum); // perform addition operation
    return 0;
}
// This code is contributed by Susobhan Akhuli
Python3
# Python program for sum of 2 numbers
a = 10
b = 15
add = a + b  # perform addition operation
print(f"Sum of {a} and {b} is: {add} ")

# This code is contributed by Susobhan Akhuli
Java
// Java program for sum of 2 numbers
import java.io.*;

class GFG {
    public static void main(String[] args)
    {
        int a, b, sum;
        a = 10;
        b = 15;
        sum = a + b;
        System.out.println(
            "Sum of " + a + " and " + b
            + " is: " + sum); // perform addition operation
    }
}

// This code is contributed by Susobhan Akhuli
C#
// C# program for sum of 2 numbers
using System;

class GFG {

    public static void Main()
    {
        int a, b, sum;
        a = 10;
        b = 15;
        sum = a + b;
        Console.Write("Sum of " + a + " and " + b + " is: "
                      + sum); // perform addition operation
    }
}
// This code is contributed by Susobhan Akhuli
JavaScript
<script>
 
// Javascript program for sum of 2 numbers

    let a = 10;
    let b = 15;
    let sum = a+b;  //perform addition operation
     
    document.write("Sum of " + a + " and " + b
                           + " is: " + sum);
 
// This code is contributed by Susobhan Akhuli
 
</script>
PHP
<?php
    // PHP program for sum of 2 numbers
    $a = 10;
    $b = 15;
    $sum = $a+$b;  //perform addition operation
    echo "Sum of $a and $b is: $sum";
    //This code is contributed by Susobhan Akhuli
?>
Scala
// Scala program for sum of 2 numbers
object Main {
    def main(args: Array[String]) {
      val a = 10;
      val b = 15;
      val sum = a + b; //perform addition operation
      println("Sum of " + a + " and " + b
                           + " is: " + sum);
    }
}
//This code is contributed by Susobhan Akhuli
HTML
<html>
<head>
<script>
// HTML program for sum of 2 numbers
a = 10;
b = 15;
sum = a + b; //perform addition operation
document.write(Sum of " + a + " and " + b + " is: " + sum);
//This code is contributed by Susobhan Akhuli
</script>
</head>
</html>
Cobol
*> Cobol program for sum of 2 numbers
IDENTIFICATION DIVISION.
PROGRAM-ID. SUMOFTWONUMBERS.
 
DATA DIVISION.
    WORKING-STORAGE SECTION.
        77 B PIC 99.
        77 A PIC 99.
        77 SU PIC 99.
PROCEDURE DIVISION.
    SET A TO 10.
    SET B TO 15.
    ADD A B GIVING SU.
    DISPLAY "Sum of " A " and " B " is: "SU.
STOP RUN.

*> This code is contributed by Susobhan Akhuli
Dart
// Dart program for sum of 2 numbers
void main() {
    var a = 10; 
    var b = 15; 
    var sum = a+b; // perform addition operation
    print("Sum of ${a} and ${b} is: ${sum}");
}

// This code is contributed by Susobhan Akhuli
Go
// Go program for sum of 2 numbers
package main
  
import "fmt"
  
// Main function
func main() {
      a:= 10
    b:= 15
    su:= a + b // perform addition operation
    fmt.Printf("Sum of %d and %d is: %d", a, b, su)
}

// This code is contributed by Susobhan Akhuli
Julia
# Julia program for sum of 2 numbers
a = 10
b = 15
su = a + b # perform addition operation
println("Sum of ", a, " and ", b, " is: ", su)

# This code is contributed by Susobhan Akhuli
Kotlin
// Kotlin program for sum of 2 numbers
fun main(args: Array<String>) {
 
    val a = 100
    val b = 200
 
    val sum = a + b // perform addition operation
 
    println("Sum of $a and $b is: $sum")
}

// This code is contributed by Susobhan Akhuli
Perl
# Perl program for sum of 2 numbers
$a = 10;
$b = 15;
$sum = $a + $b; # perform addition operation
print("Sum of $a and $b is: $sum");

# This code is contributed by Susobhan Akhuli
Swift
// Swift program for sum of 2 numbers
import Swift
var a = 10;
var b = 15;
var su = a+b; // perform addition operation
print("Sum of", a, "and", b, "is:", su);

// This code is contributed by Susobhan Akhuli

Output
Sum of 10 and 15 is: 25


 Advantages of programming languages:

  1. Increased Productivity: Programming languages provide a set of abstractions that allow developers to write code more quickly and efficiently.
  2. Portability: Programs written in a high-level programming language can run on many different operating systems and platforms.
  3. Readability: Well-designed programming languages can make code more readable and easier to understand for both the original author and other developers.
  4. Large Community: Many programming languages have large communities of users and developers, which can provide support, libraries, and tools.

Disadvantages of programming languages:

  1. Complexity: Some programming languages can be complex and difficult to learn, especially for beginners.
  2. Performance: Programs written in high-level programming languages can run slower than programs written in lower-level languages.
  3. Limited Functionality: Some programming languages may not have built-in support for certain types of tasks or may require additional libraries to perform certain functions.
  4. Fragmentation: There are many different programming languages, which can lead to fragmentation and make it difficult to share code and collaborate with other developers.

Tips for learning new programming language:

  1. Start with the fundamentals: Begin by learning the basics of the language, such as syntax, data types, variables, and simple statements. This will give you a strong foundation to build upon.
  2. Code daily: Like any skill, the only way to get good at programming is by practicing regularly. Try to write code every day, even if it's just a few lines.
  3. Work on projects: One of the best ways to learn a new language is to work on a project that interests you. It could be a simple game, a web application, or anything that allows you to apply what you've learned that is the most important part.
  4. Read the documentation: Every programming language has documentation that explains its features, syntax, and best practices. Make sure to read it thoroughly to get a better understanding of the language.
  5. Join online communities: There are many online communities dedicated to programming languages, where you can ask questions, share your code, and get feedback. Joining these communities can help you learn faster and make connections with other developers.
  6. Learn from others: Find a mentor or someone who is experienced in the language you're trying to learn. Ask them questions, review their code, and try to understand how they solve problems.
  7. Practice debugging: Debugging is an essential skill for any programmer, and you'll need to do a lot of it when learning a new language. Make sure to practice identifying and fixing errors in your code.

Next Article
Biology

S

SanghpriyaGautam
Improve
Article Tags :
  • Programming Language
  • Computer Science Fundamentals

Similar Reads

    GeeksforGeeks School
    GeeksforGeeks School is your one-stop destination for everything academic from Class 8th to Class 12th, from NCERT and RD Sharma solutions to competitive exam preparation.Whether you aim to improve your subject knowledge or plan for future entrance exams, we have everything you need to Learn, practi
    5 min read

    Physics

    Force
    Force is defined as an external cause that a body experiences as a result of interacting with another body. Whenever two objects interact, a force is exerted on each object.  In general-term "To Push or Pull an Object" is defined as the force. The force is the interaction experience by the object be
    11 min read
    What is Motion?
    Motion is the change in position over time, and it’s always measured with reference to a specific point, called the origin. To describe this change, we use two key terms: distance and displacement. Distance is the total path covered during motion and only has magnitude, while displacement is the sho
    9 min read
    Energy
    Energy in Physics is defined as the capacity of a body to do work. It is the capacity to complete a work. Energy can be broadly categorized into two categories, Kinetic Energy and Potential Energy. The capacity of an object to do the work is called the Energy. In this article, we will learn about, E
    10 min read
    Thermodynamics
    Thermodynamics is a branch of Physics that explains how thermal energy is changed to other forms of energy and the significance of thermal energy in matter. The behavior of heat, work, and temperature, along with their relations to energy and entropy are governed by the Four Laws of Thermodynamics.
    15+ min read
    Electrostatics
    Electrostatics is the study of electric charges that are fixed. It includes an study of the forces that exist between charges as defined by Coulomb's Law. The following concepts are involved in electrostatics: Electric charge, electric field, and electrostatic force.Electrostatic forces are non cont
    13 min read

    Chemistry

    Atomic Structure
    Atomic structure is the structure of an atom that consists of a nucleus at the center containing neutrons and protons, while electrons revolve around the nucleus. Atoms are made up of a very tiny, positively charged nucleus that is surrounded by a cloud of negatively charged electrons. The earliest
    15+ min read
    Chemical Bonding
    Chemical Bonding as the name suggests means the interaction of different elements or compounds which defines the properties of matter. Chemical bonds are formed when either at least one electron is lost to another atom, obtaining at least one electron from a different atom, or transferring one elect
    12 min read
    Acids, Bases and Salts
    Acids, Bases, and Salts are the main chemical compounds that exist in our surroundings. Acids, Bases, and Salts are compounds that occur naturally and can also be created artificially. They are found in various substances including our food. Vinegar or acetic acid is used as a food preservative. Cit
    15+ min read
    Stoichiometry and Stoichiometric Calculations
    Jeremias Richter, a German chemist, was the first to create or discover the word Stoichiometry. The quantitative analysis of the reactants and products involved in a chemical reaction is known as chemical stoichiometry. The name "stoichiometry" comes from the Greek words "stoikhein" (element) and "m
    7 min read

    Mathematics

    Algebra in Math - Definition, Branches, Basics and Examples
    Algebra is the branch of mathematics with the following properties.Deals with symbols (or variables) and rules for manipulating these symbols. Elementary (Taught in Schools) Algebra mainly deals with variables and operations like sum, power, subtraction, etc. For example, x + 10 = 100, x2 - 2x + 1 =
    4 min read
    Trigonometry in Math
    We use trigonometry in many everyday situations, often without even noticing. Construction and Architecture: Trigonometry helps calculate angles and heights when designing buildings, bridges, and roads. For example, architects use it to determine roof slopes or the angle of staircases.Navigation: Pi
    3 min read
    Number Theory in Mathematics
    Number theory is a branch of mathematics that studies numbers, particularly whole numbers, and their properties and relationships. It explores patterns, structures, and the behaviors of numbers in different situations. Number theory deals with the following key concepts:Prime Numbers: Properties, di
    4 min read
    Calculus | Differential and Integral Calculus
    Calculus was founded by Newton and Leibniz. Calculus is a branch of mathematics that helps us study change. It is used to understand how things change over time or how quantities grow, shrink, or accumulate. There are two main parts of calculus:Differential Calculus: It helps us calculate the rate o
    4 min read
    Probability and Statistics
    Probability and Statistics are important topics when it comes to studying numbers and data. Probability helps us figure out how likely things are to happen, like guessing if it will rain. On the other hand, Statistics involves collecting, analyzing, and interpreting data to draw meaningful conclusio
    15+ min read

    Computer Science

    Basics of Computer Programming For Beginners
    Be it any programming language in which you want to grow your career, it's very important to learn the fundamentals first. Before having a good command over the basic concepts of programming, you cannot imagine the growth in that particular career. Hence, this article will talk about all the basic c
    8 min read
    Components of Computer
    A computer is an electronic device that accepts data, performs operations, displays results, and stores the data or results as needed. It is a combination of hardware and software resources that integrate and provide various functionalities to the user. Hardware is the physical components of a compu
    7 min read
    System Software
    System software is the software that helps your computer run smoothly. It manages the computer's hardware and provides the foundation for other programs to work. This includes things like the operating system (Windows, macOS, Linux), drivers that connect devices to the computer, and helpful tools th
    10 min read
    Introduction to Programming Languages
    Introduction: A programming language is a set of instructions and syntax used to create software programs. Some of the key features of programming languages include: Syntax: The specific rules and structure used to write code in a programming language.Data Types: The type of values that can be store
    13 min read

    Other Subject

    Biology
    The term "biology" is derived from the Greek terms bios (meaning "life") and logos (meaning "study" or "discourse"). It is the study of living organisms and the essential processes that support their existence. Biology is divided into main branches such as botany (plants), zoology (animals), and mic
    10 min read
    Commerce
    Commerce is concerned with the activities involving taking goods and services from manufacturers and delivering them to users. The basic motive of commerce is ensuring the proper flow of goods and services in the market for the ease of manufacturers and consumers. With the help of commerce, an indiv
    6 min read
    Social Science: Meaning, Branches, Resources
    Social Science is a broad field of study that covers a wide range of disciplines, including anthropology, economics, geography, history, political science, psychology, and sociology. Social Scientists study the social and cultural aspects of human life, including our relationships with each other, o
    8 min read
    English Grammar : Learn Rules of Grammar and Basics
    Whether you're just starting on your journey to learn the English language or you've been studying for some time and find yourself struggling with English grammar, with a little bit of perseverance, anyone can learn to speak and write English with confidence and accuracy.English grammar is a set of
    9 min read
    CBSE Notes
    CBSE Notes play a significant role in boosting exam preparation. Students typically make notes of key concepts, formulas, definitions, etc. while conducting their independent study. The collection of these significant details is referred to as CBSE Notes. CBSE notes can be written by students as the
    4 min read
    NCERT Solutions for Class 8 to 12
    The NCERT Solutions are designed to help the students build a strong foundation and gain a better understanding of each and every question they attempt. This article provides updated NCERT Solutions for Classes 8 to 12 in all subjects for the new academic session 2023-24. The solutions are carefully
    7 min read
`; $(commentSectionTemplate).insertBefore(".article--recommended"); } loadComments(); }); }); function loadComments() { if ($("iframe[id*='discuss-iframe']").length top_of_element && top_of_screen articleRecommendedTop && top_of_screen articleRecommendedBottom)) { if (!isfollowingApiCall) { isfollowingApiCall = true; setTimeout(function(){ if (loginData && loginData.isLoggedIn) { if (loginData.userName !== $('#followAuthor').val()) { is_following(); } else { $('.profileCard-profile-picture').css('background-color', '#E7E7E7'); } } else { $('.follow-btn').removeClass('hideIt'); } }, 3000); } } }); } $(".accordion-header").click(function() { var arrowIcon = $(this).find('.bottom-arrow-icon'); arrowIcon.toggleClass('rotate180'); }); }); window.isReportArticle = false; function report_article(){ if (!loginData || !loginData.isLoggedIn) { const loginModalButton = $('.login-modal-btn') if (loginModalButton.length) { loginModalButton.click(); } return; } if(!window.isReportArticle){ //to add loader $('.report-loader').addClass('spinner'); jQuery('#report_modal_content').load(gfgSiteUrl+'wp-content/themes/iconic-one/report-modal.php', { PRACTICE_API_URL: practiceAPIURL, PRACTICE_URL:practiceURL },function(responseTxt, statusTxt, xhr){ if(statusTxt == "error"){ alert("Error: " + xhr.status + ": " + xhr.statusText); } }); }else{ window.scrollTo({ top: 0, behavior: 'smooth' }); $("#report_modal_content").show(); } } function closeShareModal() { const shareOption = document.querySelector('[data-gfg-action="share-article"]'); shareOption.classList.remove("hover_share_menu"); let shareModal = document.querySelector(".hover__share-modal-container"); shareModal && shareModal.remove(); } function openShareModal() { closeShareModal(); // Remove existing modal if any let shareModal = document.querySelector(".three_dot_dropdown_share"); shareModal.appendChild(Object.assign(document.createElement("div"), { className: "hover__share-modal-container" })); document.querySelector(".hover__share-modal-container").append( Object.assign(document.createElement('div'), { className: "share__modal" }), ); document.querySelector(".share__modal").append(Object.assign(document.createElement('h1'), { className: "share__modal-heading" }, { textContent: "Share to" })); const socialOptions = ["LinkedIn", "WhatsApp","Twitter", "Copy Link"]; socialOptions.forEach((socialOption) => { const socialContainer = Object.assign(document.createElement('div'), { className: "social__container" }); const icon = Object.assign(document.createElement("div"), { className: `share__icon share__${socialOption.split(" ").join("")}-icon` }); const socialText = Object.assign(document.createElement("span"), { className: "share__option-text" }, { textContent: `${socialOption}` }); const shareLink = (socialOption === "Copy Link") ? Object.assign(document.createElement('div'), { role: "button", className: "link-container CopyLink" }) : Object.assign(document.createElement('a'), { className: "link-container" }); if (socialOption === "LinkedIn") { shareLink.setAttribute('href', `https://www.linkedin.com/sharing/share-offsite/?url=${window.location.href}`); shareLink.setAttribute('target', '_blank'); } if (socialOption === "WhatsApp") { shareLink.setAttribute('href', `https://api.whatsapp.com/send?text=${window.location.href}`); shareLink.setAttribute('target', "_blank"); } if (socialOption === "Twitter") { shareLink.setAttribute('href', `https://twitter.com/intent/tweet?url=${window.location.href}`); shareLink.setAttribute('target', "_blank"); } shareLink.append(icon, socialText); socialContainer.append(shareLink); document.querySelector(".share__modal").appendChild(socialContainer); //adding copy url functionality if(socialOption === "Copy Link") { shareLink.addEventListener("click", function() { var tempInput = document.createElement("input"); tempInput.value = window.location.href; document.body.appendChild(tempInput); tempInput.select(); tempInput.setSelectionRange(0, 99999); // For mobile devices document.execCommand('copy'); document.body.removeChild(tempInput); this.querySelector(".share__option-text").textContent = "Copied" }) } }); // document.querySelector(".hover__share-modal-container").addEventListener("mouseover", () => document.querySelector('[data-gfg-action="share-article"]').classList.add("hover_share_menu")); } function toggleLikeElementVisibility(selector, show) { document.querySelector(`.${selector}`).style.display = show ? "block" : "none"; } function closeKebabMenu(){ document.getElementById("myDropdown").classList.toggle("show"); }
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences