Can i import C code into C++ code ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can i import C code into C++ code ?

Well if that's possible, it could be easier for me to code in both languages ...

5th May 2020, 3:57 AM
Ahmed Amine Doudech
Ahmed Amine Doudech - avatar
3 Answers
+ 4
sure,.. I imported a library written in C in my C++ code.
5th May 2020, 5:37 AM
Ahlin Chan
Ahlin Chan - avatar
+ 2
Yes you can I have tried it in VS 2019 I have typed printf then cout 😅
5th May 2020, 4:33 AM
ycsvenom
ycsvenom - avatar
+ 1
Yes just include the header you want like #include <iostream > #include <stdio.h > Using namespace std ; That's for i/o
5th May 2020, 5:43 AM
ycsvenom
ycsvenom - avatar