C++ Exercises practice with solution
What is C++ Programming Language?
C++ is a general-purpose programming language. It has imperative, object-oriented and generic programming features, while also providing facilities for low-level memory manipulation.
It was designed with a bias toward system programming and embedded, resource-constrained and large systems, with performance, efficiency and flexibility of use as its design highlights. Many vendors provide C++ compilers, including the Free Software Foundation, Microsoft, Intel, and IBM.
The best way we learn anything is by practice and exercise questions. We have started this section for those (beginner to intermediate) who are familiar with C++ programming.
Hope, these exercises help you to improve your C++ programming coding skills. Currently, following sections are available, we are working hard to add more exercises .... Happy Coding!
Latest Exercises : C++ Recursion C++ Object-Oriented Programming C++ File handling Dynamic Memory Allocation
List of C++ Exercises
- Basic Exercises: 86 Exercises with Solution
- Basic Algorithm Exercises: 129 Exercises with Solution
- For Loop Exercises: 87 Exercises with Solution
- Date Exercises: 6 Exercises with Solution
- String Exercises: 42 Exercises with Solution
- Array Exercises: 30 Exercises with Solution
- Vector Exercises: 6 Exercises with Solution
- Dynamic Memory Allocation Exercises: 10 Exercises with Solution
- Recursion Exercises: 16 Exercises with Solution
- Object-Oriented Programming Exercises: 10 Exercises with Solution
- File handling Exercises: 15 Exercises with Solution
- Math Exercises: 35 Exercises with Solution
- Linked List Exercises: 21 Exercises with Solution
- Stack Exercises: 30 Exercises with Solution
- Queue Exercises: 27 Exercises with Solution
- Numbers: 45 Exercises with Solution
- Sorting and Searching: 14 Exercises with Solution
- More ....
More to Come !
Popularity of Programming Language Worldwide, Sept 2023 compared to a year ago:
Rank | Change | Language | Share | Trend |
---|---|---|---|---|
1 | Python | 27.99 % | +0.1 % | |
2 | Java | 15.9 % | -1.1% | |
3 | Javascript | 9.36 % | -0.1% | |
4 | C# | 6.67 % | -0.4% | |
5 | C/C++ | 6.54 % | +0.3 % | |
6 | PHP | 4.91 % | -0.4 % | |
7 | R | 4.4% | +0.2% | |
8 | TypeScript | 3.04 % | +0.2% | |
9 | ![]() |
Swift | 2.64 % | +0.6% |
10 | Objective-C | 2.15% | +0.1% | |
11 | ![]() |
Rust | `2.12% | +0.5% |
12 | ![]() |
Go | 2.0% | -0.1% |
13 | ![]() |
Kotlin | 1.78 % | -0.0% |
14 | Matlab | 1.58 % | +0.1% | |
15 | Ruby | 1.05% | -0.1% | |
16 | ![]() |
Ada | 1.02 % | +0.3 % |
17 | ![]() |
Dart | 0.95 % | +0.1 % |
18 | ![]() |
Powershell | 0.94 % | +0.0 % |
19 | ![]() |
VBA | 0.91 % | -0.1 % |
20 | Scala | 0.64 % | -0.1 % | |
21 | Lua | 0.59 % | -0.0 % | |
22 | Visual Basic | 0.58 % | -0.0 % | |
23 | Abap | 0.57 % | +0.1 % | |
24 | Julia | 0.38 % | -0.1 % | |
25 | Groovy | 0.37 % | -0.0 % | |
26 | Perl | 0.28 % | -0.1 % | |
27 | Cobol | 0.27 % | -0.1 % | |
28 | Haskell | 0.23 % | -0.1 % | |
29 | Delphi/Pascal | 0.15 % | +0.2 % |
Source : https://pypl.github.io/PYPL.html
TIOBE Index for September 2023
Sep 2023 | Sep 2022 | Change | Programming Language | Ratings | Change |
---|---|---|---|---|---|
1 | 1 | Python | 14.16% | -1.58% | |
2 | 2 | C | 11.27% | -2.70% | |
3 | 4 | ![]() |
C++ | 10.65% | +0.90% |
4 | 3 | ![]() |
Java | 9.49% | -2.23% |
5 | 5 | C# | 7.31% | +2.42% | |
6 | 7 | ![]() |
JavaScript | 3.30% | +0.48% |
7 | 6 | ![]() |
Visual Basic | 2.22% | -2.18% |
8 | 10 | ![]() |
PHP | 1.55% | -0.13% |
9 | 8 | ![]() |
Assembly language | 1.53% | -0.96% |
10 | 9 | ![]() |
SQL | 1.44% | -0.57% |
11 | 15 | ![]() |
Fortran | 1.28% | +0.26% |
12 | 12 | Go | 1.19% | +0.03% | |
13 | 14 | ![]() |
MATLAB | 1.19% | +0.13% |
14 | 22 | ![]() |
Scratch | 1.08% | +0.51% |
15 | 13 | ![]() |
Delphi/Object Pascal | 1.02% | -0.07% |
16 | 16 | Swift | 1.00% | +0.02% | |
17 | 26 | ![]() |
Rust | 0.97% | +0.47% |
18 | 18 | R | 0.97% | +0.02% | |
19 | 20 | ![]() |
Ruby | 0.95% | +0.30% |
20 | 34 | ![]() |
Kotlin | 0.90% | +0.59% |
Source : https://www.tiobe.com/tiobe-index/
C++ Programming: Tips of the Day
How to use doxygen to create UML class diagrams from C++ source
Doxygen creates inheritance diagrams but I dont think it will create an entire class hierachy. It does allow you to use the GraphViz tool. If you use the Doxygen GUI frontend tool you will find the relevant options in Step2: -> Wizard tab -> Diagrams. The DOT relation options are under the Expert Tab.
Ref: https://bit.ly/3QUFLBY
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- JavaScript String Exercises
- JavaScript HTML Form Validation
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join
We are closing our Disqus commenting system for some maintenanace issues. You may write to us at reach[at]yahoo[dot]com or visit us at Facebook