Is there any situation where you should use C instead of C++? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Is there any situation where you should use C instead of C++?

See Question.

18th May 2017, 6:42 AM
Krystal Boyd
Krystal Boyd - avatar
3 Antworten
+ 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.
18th May 2017, 6:49 AM
Highman
Highman - avatar
+ 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.
18th May 2017, 1:18 PM
aklex
aklex - avatar
0
C is less bloated than C++. If your project requires strict optimization for any reason, C could be better.
18th May 2017, 7:13 AM
Denis Felipe
Denis Felipe - avatar