Welcome back! Recently i’ve been talking alot about the most popular programming languages that other massive companies use, I noticed a bunch of these positions require knowledge of C and C++, so let’s talk about some of the biggest differences between these 2 languages.
Starting off, the age of these languages are a little bit different, C was developed in 1969, C++ was started in 1979, a very important thing to remember is that C++ is derived from C. Another massive difference is that C is a procedural programming language where C++ is an object oriented language, what does this mean? Let’s take a look at a very informative table created by geeksforgeeks.org:
Essentially C and C++ have their pros and cons, but these are some of the biggest differences between these languages, if you want to read their full article check out this link below:
Differences between Procedural and Object Oriented Programming - GeeksforGeeks
Procedural Programming: Procedural Programming can be defined as a programming model which is derived from structured…
Essentially, these languages are more similar than different, they both share similar syntax and almost all of C’s syntax is present in C++ as well.
Another slight difference between these 2 are the salaries between these languages, a C developer (on average) on Indeed has a salary of $103,665:
Interestingly enough, a C++ developer has an average salary of $110,623:
As you can see, I wouldn’t learn one over the other because of the salary, but from what i’ve seen more jobs require C++ and C than one or the other. Another massive difference is the data types, C does not support Boolean or String data types, C++ on the other hand supports built in data types and user defined data types as well. C also doesn’t support try / catch or references, C++ supports both exception handling and references and pointers.
So… Which Should I Learn?
In my opinion, C++ is probably the better one to learn right now, it seems to be more in demand and there are (in my opinion) higher quality tutorials for C++ than for C right now. On top of this, there seems to be a few more positions available for C++ over C:
Number of C++ positions available on Indeed:
Number of C positions available on Indeed:
On the flip side, I think learning both of these is an extremely awesome thing you can do. Is the syntax exactly the same? No, but it’s not too far off, plus having C & C++ on your resume could help you land more jobs. At the end of the day even though C++ essentially came from C, there are many pros to learn C++ over C.
Below are some of my favorite tutorials to follow if you want to learn C++:
FreeCodeCamp Youtube tutorial:
LearnCpp.com is a free website devoted to teaching you how to program in C++. Whether you've had any prior programming…
Learn C++ | Codecademy
Learn one of the most powerful programming languages in the world and become a rockstar developer. ⚡
if you have any suggestions, thoughts or just want to connect, feel free to contact / follow me on Twitter! Also, below is a link to some of my favorite resources for learning programming, Python, R, Data Science, etc.
Here are some of my favorite courses, books and so much more. Most of these are affiliate links which help me create…
Thanks so much for reading!