+ 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

14th Sep 2017, 5:54 PM
Rahul Pramanik
Rahul Pramanik - avatar
9 ответов
+ 16
C++ is backwards compatible with C. You can compile and run C code with a C++ compiler.
14th Sep 2017, 6:25 PM
Hatsy Rei
Hatsy Rei - avatar
+ 6
After all, C++ is a superset of C. It is its duty to run C codes effectively...
15th Sep 2017, 9:13 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 5
i just found out by myself recently 😁
14th Sep 2017, 6:38 PM
Rahul Pramanik
Rahul Pramanik - avatar
+ 5
It is an amazing yet accidental feature :D
14th Sep 2017, 6:59 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 5
@sayan C++ can contain nearly all C features so you can develop in "C" ^^
14th Sep 2017, 7:38 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 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##
14th Sep 2017, 7:32 PM
sayan chandra
sayan chandra - avatar
+ 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++.
16th Sep 2017, 10:40 AM
Sophia