Google News
logo
What is C++ (CPP)? and C++ "Hello, World!" Program.

What is C++ (or) CPP?

C++ (sometimes also written as CPP, which stands for "C Pre-Processor") is a high-level, general-purpose programming language that was developed by Bjarne Stroustrup in 1983 as an extension of the C programming language.

* C++ is an object-oriented programming language, meaning it supports concepts like classes, objects, inheritance, and polymorphism.

* It is also a compiled language, which means that programs written in C++ are translated into machine code by a compiler before they are executed.

* C++ is widely used in the software industry for developing a variety of applications, including operating systems, device drivers, web browsers, video games, and more.

* Some of the key features of C++ include its performance, as it is a low-level language that allows for efficient use of system resources, and its flexibility, as it supports both procedural and object-oriented programming paradigms.

* Additionally, C++ has a large and active community of developers, which means that there are many libraries, frameworks, and tools available for C++ programmers to use in their projects.

C++ "Hello, World!" Program :

Program :
#include <iostream>

int main() {
    std::cout << "Hello, World!";
    return 0;
}
Output :
Hello, World!
* This program uses the standard library iostream to output the string "Hello, World!" to the console.

* The main() function is the entry point for every C++ program, and it returns an integer to indicate the status of the program (in this case, 0 to indicate success).

* The << operator is used to output the string to the console. std:: is a namespace qualifier to specify that we are using the cout object from the standard library.