C vs C++: 30 Metrics Comparison
C vs C++
C
C is a Procedural, Object-Oriented, Generic programming language first appeared in 1972, designed by Dennis Ritchie. Main use cases: Systems Programming, Embedded, Performance-Critical Applications.
C++
C++ is a Procedural, Object-Oriented, Generic programming language first appeared in 1985, designed by Bjarne Stroustrup. Main use cases: Systems Programming, Embedded, Performance-Critical Applications.
30 Metrics
| Metric | C | C++ |
|---|---|---|
| GitHub Stars | 63851 | 61803 |
| Stack Overflow Tags | 864531 | 899299 |
| TIOBE Rank | 16 | 16 |
| RedMonk Rank | 10 | 13 |
| PYPL Rank | 2 | 6 |
| Average Salary (USD) | 129398 | 138524 |
| Job Postings | 43005 | 41580 |
| Benchmarks Score | 1.07 | 0.82 |
| Learning Curve | Hard | Hard |
| Community Size | Very Large | Very Large |
| Documentation Quality | 8 | 9 |
| Ecosystem Maturity | 10 | 9 |
| Industry Adoption | 10 | 9 |
| Type System Complexity | 8 | 8 |
| Concurrency Support | 10 | 7 |
| Performance - Execution Speed | 10 | 9 |
| Performance - Memory Usage | 10 | 10 |
| Performance - Startup Time | 10 | 10 |
| Tooling Quality | 8 | 10 |
| Package Manager Quality | 10 | 8 |
| IDE Support | 8 | 9 |
| Debugging Experience | 9 | 9 |
| GitHub Stars Rank | 10 | 14 |
| Stack Overflow Tags Rank | 7 | 1 |
| Average Salary Rank | 11 | 3 |
| Job Postings Rank | 7 | 11 |
| Benchmarks Rank | 3 | 26 |
| Learning Curve Score | 2 | 3 |
| Community Size Score | 9 | 9 |
| AHP Score | 8.24 | 8.12 |
AHP Score
- C: 8.24 (#9)
- C++: 8.12 (#11)
C | ######## 8.24
C++ | ######## 8.12
When to choose C
Systems Programming, Embedded, Performance-Critical Applications. C is a Procedural, Object-Oriented, Generic programming language first appeared in 1972, designed by Dennis Ritchie. Main use cases: Systems Programming, Embedded, Performance-Critical Applications.
When to choose C++
Systems Programming, Embedded, Performance-Critical Applications. C++ is a Procedural, Object-Oriented, Generic programming language first appeared in 1985, designed by Bjarne Stroustrup. Main use cases: Systems Programming, Embedded, Performance-Critical Applications.
Hello World Example
C:
#include <stdio.h>
int main(){ printf("Hello, World!\n"); return 0; }
C++:
#include <iostream>
int main(){ std::cout << "Hello, World!"; }