What is difference between C++ and C# and which language useful for MATLAB programming? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is difference between C++ and C# and which language useful for MATLAB programming?

28th Feb 2018, 2:11 AM
Hemendra Mehta
Hemendra Mehta - avatar
2 Answers
28th Feb 2018, 2:38 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
0
The main difference between C++ and C# is that C# is garbage collected and is slightly higher language than the other. This usually results in more overhead in runtime and slower execution. There's also a strong case against garbage coĺlection because it may give unexpected slowness due to unscheduled cleaning. On the other hand, it doesn't leave you with dangling pointers, wrong deletes or memory leaks.
28th Feb 2018, 6:24 AM
spcan
spcan - avatar