+ 3
Do you know Sololearn can compile C programming also?
use the c++ environment and put the c programming code there and try to run . it will compile. just one thing scanf is not supported. you need to input values of the variables by yourself. Thank me later https://code.sololearn.com/c6z0G92F2G65/?ref=app
9 Respuestas
+ 16
C++ is backwards compatible with C. You can compile and run C code with a C++ compiler.
+ 6
After all, C++ is a superset of C. It is its duty to run C codes effectively...
+ 5
i just found out by myself recently 😁
+ 5
It is an amazing yet accidental feature :D
+ 5
@sayan
C++ can contain nearly all C features so you can develop in "C" ^^
+ 1
so....
this cpp ide/compiler is a pure c editor also???????
then all the posts that r complaining about not including C in SL## are worthless ???☺😊☺😊
ENLIGHTEN ME##
+ 1
If a compiler is able to compile c++ then of course it should be able to compile a C based program as most of the header files in C are also applicable to c++.