0
Is there any situation where you should use C instead of C++?
See Question.
3 ответов
+ 7
Mainly if you need to write a program into embedded device like microcontrolers or mircoprocesors.Devices without its own operation systems.Lots of portable projects are written in strict ansi C.
+ 4
C's standard library takes up less memory, and it also doesnt require a runtime library to run like c++ does. Which makes it ideal over c++ for microcontrollers/embedded systems/drivers.
0
C is less bloated than C++. If your project requires strict optimization for any reason, C could be better.