+ 3

What's the difference between C++ and C#?

is any of them better for maybe coding GUI or developing an app? Or are they just the same with slight changes in syntax?

7th Mar 2017, 6:15 AM
Ugonna Oleh
Ugonna Oleh - avatar
4 Answers
+ 10
They are different programming languages. Let not the similarities in their names confuse you. C# is usually used to develop apps under the Microsoft franchise, C++ on the other hand used to develop huge, cross-platform systems.
7th Mar 2017, 6:26 AM
Hatsy Rei
Hatsy Rei - avatar
+ 8
C# AND C++ DIFFERENCES The similarities of C++ and C# are few, because the languages are much more different than they are similar. Although the syntax is similar, don’t assume that the languages are similar behind the scenes. A list of differences between the two languages include: 1. Size of binaries: We mentioned that the two languages are compiled languages that turn your code into binary files. C# has a lot of overhead and libraries included before it will compile. C++ is much more lightweight. Therefore, C# binaries are much larger after it compiles compared to C++. 2. Performance: C++ is widely used when higher level languages are not efficient. C++ code is much faster than C# code, which makes it a better solution for applications where performance is important. For instance, your network analysis software might need some C++ code, but performance is probably not a huge issue for a standard word processing application coded in C#. 3. Garbage collection: With C#, you don’t have to worry much about garbage collection. With C++, you have no automatic garbage collection and must allocate and deallocate memory for your objects. 4. Platform target: C# programs are usually targeted towards the Windows operating system, although Microsoft is working towards cross-platform support for C# programs. With C++, you can code for any platform including Mac, Windows and Linux. 5.Types of projects: C++ programmers generally focus on applications that work directly with hardware or that need better performance than other languages can offer. C++ programs include server-side applications, networking, gaming, and even device drivers for your PC. C# is generally used for web, mobile and desktop applications. 6. Compiler warnings: C++ will let you do almost anything provided the syntax is right. It’s a flexible language, but you can cause some real damage to the operating system. C# is much more protected and gives you compiler errors and warnings without allowing you to make some serious errors that C+
7th Mar 2017, 6:53 AM
Chirag Bhansali
Chirag Bhansali - avatar
+ 7
For similarities and how to choose between the two, visit https://www.upwork.com/hiring/development/c-sharp-vs-c-plus-plus/
7th Mar 2017, 6:53 AM
Chirag Bhansali
Chirag Bhansali - avatar