The Wayback Machine - https://web.archive.org/web/20240701092545/https://www.geeksforgeeks.org/interesting-facts-about-c/
Open In App

Interesting Facts about C++

Last Updated : 02 Jun, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

C++ is a general-purpose, object-oriented programming language. It supports generic programming and low-level memory manipulation. Bjarne Stroustrup (Bell Labs) in 1979, introduced the C-With-Classes, and in 1983 with the C++. 

Here are some awesome facts about C++ that may interest you: 

  1. The name of C++ signifies the evolutionary nature of the changes from C. “++” is the C increment operator. 
  2. C++ is one of the predominant languages for the development of all kinds of technical and commercial software. 
  3. C++ introduces Object-Oriented Programming, not present in C. Like other things, C++ supports the four primary features of OOP: encapsulation, polymorphism, abstraction, and inheritance. 
  4. C++ got the OOP features from Simula67 Programming language. 
  5. A function is a minimum requirement for a C++ program to run. 
  6. C and C++ have invented in the same place i.e. at AT&T (American Telephone & Telegraph) bell laboratories, located in the U.S.A. 
  7. Not purely object-oriented: We can write C++ code without using classes and it will compile without showing any error message. The language has some extensions over C, that make OOP and generic programming more convenient. 
  8. Many programming languages are influenced by c++, some of which include C#, Java, and even newer versions of C. 
  9. Concept of reference variables: operator overloading borrowed from Algol 68 programming language. 
  10. A major reason behind the success of C++ is that it supports various programming styles.
  11.  It is a multiparadigm programming language that not only supports the OOP paradigm but also many other paradigms.

Previous Article
Next Article

Similar Reads

Py-Facts - 10 interesting facts about Python
Python is one of the most popular programming languages nowadays on account of its code readability and simplicity. All thanks to Guido Van Rossum, its creator. I've compiled a list of 10 interesting Facts in the Python Language. Here they are:1. There is actually a poem written by Tim Peters named as THE ZEN OF PYTHON which can be read by just wri
4 min read
Interesting facts about strings in Python | Set 2 (Slicing)
Creating a String Strings in Python can be created using single quotes or double quotes or even triple quotes. # Python Program for # Creation of String # Creating a String # with single Quotes String1 = 'Welcome to the Geeks World' print("String with the use of Single Quotes: ") print(String1) # Creating a String # with double Quotes String1 = "I'
4 min read
Interesting facts about data-types and modifiers in C/C++
Here are some logical and interesting facts about data-types and the modifiers associated with data-types:- 1. If no data type is given to a variable, the compiler automatically converts it to int data type. C/C++ Code #include <iostream> using namespace std; int main() { signed a; signed b; // size of a and b is equal to the size of int cout
4 min read
Interesting Facts about Linux
Linux is community-developed and open source operating system for computers, servers, mainframes, embedded devices, and mobile devices. It is supported on nearly every major computer platforms including SPARC, ARM and, x86 building it as one of the most extensively supported operating systems. Here are some facts about Linux that may interest you:
2 min read
Interesting Facts about C#
C# is a general-purpose, modern and object-oriented programming language pronounced as "C Sharp" or "C Hash". It was developed by Microsoft led by Anders Hejlsberg and his team within the .NET initiative and was approved by the European Computer Manufacturers Association (ECMA) and International Standards Organization (ISO). C# is among the languag
3 min read
Interesting Facts About Java
Java: A general-purpose, high-level programming language. It is developed by Sun Microsystems. It was developed by a mini team of engineers which is known as the Green Team. They initiated this language in 1991. Here are some interesting facts about Java: The initial name of java was "Oak". It was changed to Java by Sun's marketing department chang
2 min read
Some interesting facts about static member functions in C++
1) static member functions do not have this pointer. For example following program fails in compilation with error "`this' is unavailable for static member functions " C/C++ Code #include<iostream> class Test { static Test * fun() { return this; // compiler error } }; int main() { getchar(); return 0; } 2) A static member function cannot be v
1 min read
Interesting facts about switch statement in C
Prerequisite - Switch Statement in C Switch is a control statement that allows a value to change control of execution. C/C++ Code // Following is a simple program to demonstrate syntax of switch. #include <stdio.h> int main() { int x = 2; switch (x) { case 1: printf("Choice is 1"); break; case 2: printf("Cho
3 min read
Interesting Facts about Macros and Preprocessors in C
In a C program, all lines that start with # are processed by preprocessor which is a special program invoked by the compiler. by this we mean to say that the ‘#’ symbol is used to process the functionality prior than other statements in the program, that is, which means it processes some code before run-time or say during the compile-time. In a ver
6 min read
Some Interesting facts about default arguments in C++
Predict the output of following C++ programs. 1) #include <iostream> void init(int a=1, int b=2, int c=3); int main() { init(); return 0; } void init(int a=1, int b=2, int c=3) { std::cout << a << ' ' << b << ' ' << c; } The above program looks correct at first glance but will fail in compilation. If function use
1 min read
three90RightbarBannerImg