0

C vs C++?

What is the purpose of using C over C++ and vice-versa? If C++ is considered the 'upgraded' version of C, then what's the point of using the C language at all if C++ can do everything and more that C can do?

28th May 2021, 2:37 AM
Nova
Nova - avatar
2 odpowiedzi
+ 4
With the power of Google I found this: C is a much smaller, simpler language. It's easier to know it well, and find other programmers who know it well. It hasn't changed very much in 30 years. There's less that can happen under the hood, the low-level characteristics of C code are generally very obvious. Its limitations are usually tolerable for problem domain it was designed for. The compile times for heavy-duty C++ code can be a huge pain in the ass. More on the topic: https://amp.reddit.com/r/C_Programming/comments/eic4tr/why_use_c_instead_of_c/
28th May 2021, 2:52 AM
Michal Doruch
+ 3
C++ is well-rounded in terms of platforms and target applications, so if your project is focused on extremely low-level processing, then you may want to use C++. C++ is often used for large-scale, multi-man, complex projects where separate people need to work on modularised components. // helpful links: https://www.quora.com/What-are-the-advantages-of-C-over-C-and-vice-versa https://www.researchgate.net/post/What_are_the_advantages_of_C_over_C_in_numerical_Computations2 https://stackoverflow.com/questions/15452892/how-i-can-access-my-c-function-in-my-c-code-or-vice-versa https://www.tutorialspoint.com/When-to-use-C-over-Cplusplus-and-Cplusplus-over-C https://www.invensis.net/blog/benefits-of-c-c-plus-plus-over-other-programming-languages/
28th May 2021, 3:47 AM
NEZ
NEZ - avatar