Some differences between C and C++ ? For someone who know C++ and need to learn C. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Some differences between C and C++ ? For someone who know C++ and need to learn C.

I know C++ well and now I need to learn C for a test. I know there ain't much difference, but still there should be some.

9th Sep 2017, 4:28 PM
Meenu Ramesh
5 Answers
+ 2
Yh you are right there are some differences between c and c++ 1. cin--------->scanf() 2.cout--------->printf() 3.iostream.h----------->stdio.h 4.Declaration must be written first ,inside the main function in c language. 5.C is faster in execution than c++ and other language.
9th Sep 2017, 4:41 PM
subham sahu
subham sahu - avatar
+ 2
but you know that in any language the only difference is there input and output instruction . eg. C------->printf() C++---------> cout java---------->printin() now you better understand
9th Sep 2017, 5:04 PM
subham sahu
subham sahu - avatar
+ 2
thats not my intention I only want make my ans uderstudable
9th Sep 2017, 5:12 PM
subham sahu
subham sahu - avatar
+ 1
no offence but saying 5 things that are different as if they are the only differences between the languages doesn't help. Do you think its worth making a new language just for those things? there is a lot more.
9th Sep 2017, 4:59 PM
Enzo
Enzo - avatar
+ 1
am I being trolled right now?
9th Sep 2017, 5:10 PM
Enzo
Enzo - avatar