82
I think everyone with the least amount of knowledge knows when to choose C or C++ over other languages. There are clear cases where these languages are more suitable and others that do not make so much difference. But there may be a situation where you know that one of the two is ideal but you don’t know which one.
What concrete elements we should look at and in which situations we can be sure that C is more appropriate than C++ or C++ is the most appropriate?
The reasons need not be essentially technical but they need to be objective, needs to be something experienced professionals in both languages usually agree.
In other words, which problems C handles best and which C++ usually does well?
Of course, both can be used for any project, but it is not always the most suitable tool. There are cases that some requirements may make a choice impossible. What requirements can make it so difficult to use one language that it is better to use the other?
Consider policy points as not fundamental requirements, only the technical part really matters.
Those who don’t understand C and C++ development don’t know what makes each one more attractive or not.
– lsalamon
Excellent question! I’m starting my studies with C++ now, let’s clarify this question.
– Wallace Maxters
I never stopped to think about it... but if what C does, C++ does too, then using C++ seems to be more advantageous since I can get as close to OO as possible, which wouldn’t be possible in C... Correct?
– sergio developer
@sergiodeveloper is not that simple. Even because OO is usually bad, but it’s not worth talking about here (it’s something that few, truly experienced, programmers understand).
– Maniero