What Is CPP - L2
What Is CPP - L2
1. What is C++?
2. Features of C++
3. Who developed C++?
4. History of C++
5. Uses of C++ Programming Language
6. Compare and Contrast C and C++
What is C++?
- C++ is a computer programming language created in 1983 by Bjarne Stroustrup.
C++ gives programmers a high level of control over system resources and memory.
The language was updated 3 major times in 2011, 2014, and 2017 to C++11, C++14,
and C++17.
Features of C++
C++ is object oriented programming language. It provides a lot of features that are
given below.
1) Simple
C++ is a simple language in the sense that it provides structured approach (to break
the problem into parts), rich set of library functions, data types etc.
6) Memory Management
It supports the feature of dynamic memory allocation. In C++ language, we can free
the allocated memory at any time by calling the free() function.
7) Speed
The compilation and execution time of C++ language is fast.
8) Pointer
C++ provides the feature of pointers. We can directly interact with the memory by
using the pointers. We can use pointers for memory, structures, functions, array etc.
9) Recursion
In C++, we can call the function within the function. It provides code reusability for
every function.
10) Extensible
C++ language is extensible because it can easily adopt new features.
History of C++
C++ programming language was developed in 1980 by Bjarne Stroustrup at bell
laboratories of AT&T (American Telephone & Telegraph), located in U.S.A.
- C++ can be found in today's operating systems, Graphical User Interfaces, and
embedded systems.
- C++ is portable and can be used to develop applications that can be adapted to
multiple platforms.
Operating systems
C++ plays an important part in well-known operating systems, from MacOS and
Windows to mobile operating systems like iOS. In general, operating systems need to
be fast and efficient at managing system resources. With the low-level (close to
machine code) capabilities of C++, developers can structure their code to make even
the smallest details of an operating system fast and energy efficient.
Game development
C++ is one of the most widely-used programming languages in game development. It
has been used to create: games, such as World of Warcraft, Counter-Strike, and
StarCraft, game engines like Unreal Engine, and gaming consoles, including Xbox,
PlayStation, and Nintendo Switch.
IoT devices
IoT (Internet of Things) devices include embedded systems that often rely on C++.
Some examples of these devices are appliances, cars, smartwatches, TVs, and
medical devices. Because the hardware is often embedded inside of an object, these
devices have to operate with limited computing resources and strict power
requirements. C++ helps programmers control how these resources are used in
order to run programs more efficiently.
Databases
C++ is used to build popular database tools like MySQL and MongoDB. These
databases form the backbone of many well-known applications, including ones
created by Google, Netflix, YouTube, Adobe, and more. C++ is ideal for helping
structure databases to support efficient storage.
Web browsers
C++ plays a role in web browsers, such as Google Chrome, Mozilla Firefox, Safari, and
Opera. It is used to develop back-end services that retrieve information from
databases and render code into interactive web pages. C++ helps web browsers
carry out these tasks with speed and minimal delays, which means we don’t have to
wait long for content to appear on our screens.
AR/VR applications
C++ is widely used for developing augmented reality and virtual reality applications.
In fact, many of these applications run on Unreal Engine, which is built using C++.
AR/VR applications need to handle large amounts of data that adjust continuously
based on input from camera sensors and user interactions. C++ is ideal for helping
process all of this data while creating seamless virtual experiences.
Scientific research
C++ plays a notable role in scientific research, from space exploration to high-energy
particle physics. At CERN, scientists use C++ for analyzing data on subatomic particles
that can help answer questions about how our universe originated. At NASA, C++ has
been used to build autonomous driving systems that help the Mars Rovers navigate
unknown terrain. Many parts of the International Space Station are built using C++ as
well.
Financial tools
Many banks and financial institutions use C++ to build their software infrastructure,
which powers applications for banking, trading, and financial modeling. The speed
and reliable performance of C++ is ideal for processing millions of daily transactions,
facilitating a high volume and frequency of trades, and creating data simulations for
large portfolios.
Flight software
C++ is a commonly-used language for flight software that powers commercial
airplanes and military and defense aircraft (such as the F-16 and F-35 planes). C++ is
used to build a lot of the safety-critical software, which is required to follow strict
coding standards to make sure that the wings, engines, and other critical parts work
predictably during each flight.
Medical technology
C++ can be found in a variety of medical applications, from MRI machines to lab
testing equipment to systems that handle patient information. C++ is also used to
model data and run data simulations for bioinformatics research, because many
advanced algorithms written for the medical and biological sciences are
implemented in C++.
Telecommunications
C++ is widely used in building telephone, Internet, and other telecommunications
infrastructure. It’s ideal for managing resources to handle tons of simultaneous
communication with speed and efficiency.
Movie production
Many of the graphics and special effects that you see in movies are created with C++.
C++ is great for this role because it can handle large files with high-quality footage
and run many of the advanced calculations that make the special effects possible.