What Is C++? (And How to Learn It)

Written by Coursera Staff • Updated on

Discover the programming language C++, what you can use it for, and how to learn it.

[Featured Image] A C++ programmer in white headphones uses two computer monitors to work on code for their job.

C++ is among the world's top 10 most widely used programming languages [1]. It’s a general-purpose programming language (GPL), which means you can use it to build any program. To determine whether C++ is the right programming language for you, learn more about its use cases, benefits, potential drawbacks, and how to start building skills.

Placeholder

professional certificate

U.S. Federal Taxation

U.S. Federal Taxation of Individuals & Businesses. Learners will develop knowledge in U.S. federal taxation as applied to individuals and businesses.

4.8

(732 ratings)

23,555 already enrolled

Intermediate level

Average time: 3 month(s)

Learn at your own pace

Skills you'll build:

Business Analysis, Federal Income Tax, Tax Accounting, IRS Regulations, Pass-Through Entity Taxation, Corporate Tax, Depreciation, Amortization, Capital Gains and Losses, Property Taxation, Nontaxable Exchanges, Tax Deduction, Form 1040 Preparation, Individual Taxation, U.S. Federal Tax, Tax Deductions, Self-Employment Tax

What is C++?

C++ (or “C plus plus”) is a generic programming language for building software. It is an object-oriented language. In other words, it emphasizes using data fields with unique attributes (a.k.a. objects) rather than logic or functions. A common example of an object is a user account on a website. A user account typically contains closely related data like a first name, last name, and email address. Bundling that information together into an object makes it easy to replicate the process of creating a new online account.

When was C++ created?

Bjarne Stroustrup invented C++ in 1979 to extend C, a procedural programming language. He designed it to offer programmers more control over memory and system resources.

Placeholder

What is C++ used for?

Over time, C++ has become a choice language for building fast and reliable software. Its versatility makes it an excellent option for complex applications, embedded systems, and Internet of Things (IoT) devices. A few common areas where you may opt for C++ include:

  • Software engineering. A few applications you might use daily that utilize C++ include Netflix and Amazon.

  • Operating system (OS) development uses C++. Examples of OSs that use C++ include Microsoft Windows, Mac OS X, and iOS.

  • Graphical user interfaces. C++ is often useful for graphical user interface design or GUI.

  • Virtual reality (VR). C++ can be an excellent language to learn if you want to develop VR applications.

  • Blockchain technology. The well-known cryptocurrency Bitcoin was developed in C++. You can also use it to create smart contracts.

  • Game development. You can develop games and gaming consoles with C++. For example, the game World of Warcraft and the Xbox console utilize C++.

Should you learn C++?

C++ is a great language to learn if you want to gain a deep understanding of how computers work. It’s generally considered a good starting point for novice or beginner coders. With knowledge of C++, you may also be able to pick up other languages like Python or JavaScript more easily.

Read more: Python vs. C++: Which to Learn First and Where to Start

What is the difference between C and C++?

C++ is an extension of C, which was one of the earliest programming languages. While C++ retains the functionality of C, such as the ability to develop operating systems and desktop applications, it extends user control over system memory and resource use. This means you can manage the memory within your applications, increasing the speed and performance of C++-based video games, softwares, devices, and more.

Placeholder

Advantages of learning C++

Programming in C++ offers several advantages. Because it is object-oriented, you can easily organize and classify the code. Instead of rewriting code from scratch, you can reuse it. You can also use C++ to interact directly with a computer’s hardware. As a result, you can control how a system uses its computational resources, like software, hardware, and memory. 

Career advancement opportunities

Experience with C++ can introduce you to job opportunities with high-paying salaries and high projected job growth. The US Bureau of Labor Statistics estimates software developers (along with quality assurance analysts and testers) earn a median annual salary of $130,160 as of 2023, with a projected job growth rate of 17 percent over the next decade [2]. Glassdoor reports a similarly high salary, with the average yearly pay for C developers in the US estimated at $114,444 [3].

How to learn C++

C++ basics include storing information, repeating actions through loops, and collecting user input. The list below outlines a few key concepts for C++ beginners to explore, then check out the next section for recommendations on where to start:

  • Conditionals like “if statements,” “if else statements,” and “switch case statements,” which tell a computer what to do under certain conditions

  • How to assign classes to objects (data fields with unique attributes)

  • How to write code using C++ syntax, the predefined symbols and characters that determine how a computer reads the code

  • How to compile and link a C++ file so that the code can run on a machine 

Online courses in C++

When starting out, gaining practical experience in boot camps or Guided Projects can help you put your knowledge into practice. Consider a few beginner-friendly online courses to get you started:

You can also practice basic C++ with exercises like printing “Hello, World,” converting Celsius to Fahrenheit, and performing arithmetic operations.

Joining the C++ developer community

Connecting with and learning from other, more experienced programmers can be helpful. For example, you may consider joining the C++ Slack community or following questions with the C++ tag on Stack Exchange. You can also follow relevant YouTube channels like Programming with Mosh. Once you’ve gained some technical expertise and practiced coding in C++ on your own, you might be ready to apply your skills to a real-life project on a collaborative site like GitHub.

Learn C++ with Coursera

On Coursera, you can start building a strong foundation for your programming career today by enrolling in an introductory online course like Programming Fundamentals by Duke University.

Frequently Asked Questions (FAQ)

Article sources

1

Statista. “Most used programming languages among developers worldwide as of 2024, https://www.statista.com/statistics/793628/worldwide-developer-survey-most-used-languages/.” Accessed January 17, 2025.

Updated on
Written by:

Editorial Team

Coursera’s editorial team is comprised of highly experienced professional editors, writers, and fact...

This content has been made available for informational purposes only. Learners are advised to conduct additional research to ensure that courses and other credentials pursued meet their personal, professional, and financial goals.

Get interactive, on-demand assistance that’s tailored to your unique goals.

Save money and learn in-demand skills from top companies and organizations at your own pace.