If c++ compilers can also run c programs then can we blend c and c++ syntax in the compiler? If possible please share | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If c++ compilers can also run c programs then can we blend c and c++ syntax in the compiler? If possible please share

18th Nov 2017, 2:42 AM
Digitalboy
3 Answers
+ 6
Thats right. C/C++ is special. Here is a example including C C++ ASM (assembly) https://code.sololearn.com/c3fUwnZDpjJK/?ref=app
18th Nov 2017, 2:49 AM
Manual
Manual - avatar
+ 3
You're Welcome! I find the asm difficult, that section was based off another users code.
18th Nov 2017, 4:20 AM
Manual
Manual - avatar
+ 1
thanks
18th Nov 2017, 3:00 AM
Digitalboy