C++
-
What is C++?
C++ is an enhanced version of the traditional C programming language, equipped with features such as object-oriented programming. Bjarne Stroustrup at AT&T developed it in the mid-1980s. C++ is known as an intermediate-level language because it supports both high-level (abstract) and low-level (hardware) programming.
C++ is considered one of the faster languages and is very close to low-level languages, thus allowing complete control over memory allocation and management. Its versatility makes C++ suitable for systems needing careful memory allocation, such as financial tools, web browsers, and video games.
3 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
What is C++ used for?
C++ is a versatile, intermediate-level language that supports both high- and low-level programming. It is an extension of the C language with object-oriented programming and other features.
C++ is useful for systems needing careful memory allocation, such as web browsers, search engines, and flight software. It is also used in video games, movie effects, and financial tools. C++ is considered one of the fastest languages and is very close to low-level languages, thus allowing complete control over memory allocation and management. However, its many capabilities also make it one of the most difficult languages to handle on a large scale.
3 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
How does C++ differ from other computer languages like Python?
C++ is an intermediate-level language, useful for both high-level and low-level programming, especially in systems needing careful memory allocation like game development and flight software. C++ facilitates both abstract, high-level programming and low-level hardware programming.
Python is an interpreted, object-oriented, high-level language with dynamic semantics. Unlike Java, Python is interpreted, meaning its source code is directly executable without a compiler. Also, it is object-oriented, in contrast to functional languages like C, designing software around objects with methods and attributes, as opposed to function-centered languages. Python is defined as having dynamic semantics, in contrast to a statically typed language such as C, because variable names can point to objects of any type.
2 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
What are some key features of the C++ language?
C++ is an intermediate-level language that facilitates both high-level and low-level programming. Bjarne Stroustrup at AT&T developed C++ in the mid-1980s. C++ is an extension of the C language that incorporates objects, preserving the efficiency of C programs.
Key features of C++:
* Object-oriented programming to manage complexity in large programs
* Facilitates both low-level and high-level programming
* Versatile and useful for systems needing careful memory allocation, such as game development, Web browsers, and flight software
* Considered one of the fastest languages3 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
What is object-oriented programming and how does C++ support it?
Object-oriented programming utilizes modular units like objects and classes to streamline programming and simplify maintenance. It manages complexity in large programs through objects that combine data and operations, concealing internal data structure details and allowing programmers to focus on individual program parts.
C++, developed in the mid-1980s at AT&T, enhances C by incorporating objects while maintaining program efficiency. It's a significant language in education and industrial programming, used extensively in operating systems and commercial software. C++ allows control over memory allocation, making it fast but complex to learn and manage extensively.
2 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
Where is C++ commonly used today and why is it still important to learn?
C++ is still relevant because it blends high and low-level programming, making it useful for systems needing careful memory management, such as web browsers, search engines, and video games. It is also used in movie effects, financial tools, flight software, and space-exploration equipment.
C++ is fast and close to low-level languages, granting control over memory allocation and management. Its object-oriented features help manage complexity in large programs by packaging data and operations, improving large-scale programming. Despite being challenging to learn, its capabilities make it valuable in both education and industrial programming.
2 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.
C++, version of the traditional C programming language augmented with object-oriented programming and other features. C++ is an âintermediate-levelâ language, meaning that it facilitates âhigh-levelâ programmingâi.e., in the abstractâand âlow-levelâ programming of actual hardware. This utility at both ends of the programming spectrum has made C++ useful for many systems requiring careful allocation of memory, such as Web browsers, search engines, video games, movie effects, financial tools, flight software, and space-exploration equipment. However, C++ is one of the more-challenging programming languages to apply on a large scale.
Danish computer scientist Bjarne Stroustrup began developing the new programming language shortly after joining the technical staff at Bell Laboratories in 1979. Stroustrupâs interest emerged from his experience as a doctoral student at the University of Cambridge, where he was unable to find a language he considered suitable for large software development. The language Simula 67 offered the object-based programming and other programmer-friendly features that Stroustrup coveted but ran too slowly to handle large-scale work, whereas the language BCPL compiled at the necessary speed but lacked Simulaâs features. By adding aspects of Simula to the traditional C language without decreasing the speed prized by C users, Stroustrup struck an efficient balance between hardware access and abstraction. The new language was originally called âC with Classesâ and nicknamed ânew C,â the former to advertise the modular organization with which it allowed programmers to write.
However, by 1982, Stroustrup was disenchanted with his creation, judging it incapable of ever gaining enough popularity to support its continued development without his assistance. He decided the language simply lacked enough improvement over the original C to merit the investment of time and energy necessary for adopting it. Faced with the choice of either abandoning the project or improving it, Stroustrup chose the latter, beginning work in 1983. A new compiler, Cfront, was written to replace the one that C with Classes had inherited. Stroustrup also added Simulaâs concept of virtual functions, ALGOL 68âs operator overloading, and other attributes new to C.
In December 1983 Stroustrupâs coworker Rick Mascitti suggested calling the new language C++. The name is a twofold reference: first, the plus sign is a common indicator of program enhancement in programmer culture; and second, the symbol ++ in B-derived programming languages is an incremental operator of one, so C++ literally means âC plus [features].â
Another coworker of Stroustrupâs, Al Aho, suggested that Stroustrup turn the written work that he had generated thus far into a book akin to Brian Kernighan and Dennis Ritchieâs The C Programming Language. Stroustrup wrote The C++ Programming Language in nine months, and the book was published in 1985, the same year that C++ became commercially available outside Bell Laboratories.
C++ became popular among programmers. According to Stroustrupâs estimates, a year after its release roughly 2,000 programmers worldwide used C++, and that number more than doubled every year thereafter, reaching 50,000 by 1989. Version 2.0âs debut that year further fueled the languageâs rapid adoption by improving space optimization, increasing the overall âsafetyâ of the language (i.e., instituting guardrails against various errors), and implementing important new features, such as multiple inheritance and abstract concepts. By October of 1991, C++ compiler supplier Borland reported that it had filled 500,000 orders, and more than 60 additional English-language books on C++ were in circulation.
In 1988 Stroustrup was looking ahead to the task of formally standardizing C++ and popularizing its definition. He set to rewriting a second and more-comprehensive manual with the input of the C++ community. When AT&T hired author Margaret Ellis to write an improved C++ manual, Stroustrup offered to combine efforts with Ellis to produce one definitive work. The result of their teaming up, The Annotated C++ Reference Manual (1990), was the standard reference for C++ programmers throughout most of the 1990s.
A standards committee operating under the auspices of the International Organization for Standardization (IOS) formed shortly thereafter in 1991, and it standardized C++ in 1998 with the update C++98. Another update followed in 2003, when C++ was the most-looked-for language on Web search engines.
Since 2011, a new version of C++ has been released every three years. As of 2022, the language is used by an estimated four million programmers, making it one of the most-popular programming languages in the world.

" height="20" alt="HEW Logo">