answersLogoWhite

0


Best Answer

C# is completely object-oriented whereas C++ allows the concept of primitive variables which are not object-oriented. Moreover, C# only works on Microsoft .NET platforms, whereas C++ is a generic language. C# actually has more in common with Java than it does with C++, because both C# and Java compile to byte code that is suitable for interpretation by a virtual machine, whereas C++ compiles to native machine code.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

C++ is a general purpose, multi-paradigm, cross-platform programming language that essentially combines a C with object-oriented programming principals. It was originally developed by Bjarne Stroustrup in the late 70s and is the most popular programming language of its kind.

C# was developed by Microsoft and although it shares a very similar syntax to that of C++, it actually has far more in common with Java than it does C++. Like Java, C# is entirely object-oriented (there are no primitive data types) but unlike Java which is highly portable, C# only works on Windows platforms. Both C# and Java are used to develop applications software and both rely on a separate program to interpret the compiled byte code to machine code at runtime. The reliance on a runtime interpreter means C# programs do not perform well compared to equivalent native machine code programs such as those produced by C++. This makes it unsuitable for low-level or time-critical applications such as device drivers or embedded software.

C++ does not require a separate runtime program as it compiles to native machine code, but code must be compiled separately on each platform. C++ is also used to develop applications software, including other programming languages such as C# and Java, but it can also be used to develop low-level or time-critical software such as device drivers, operating system kernels and support utilities, embedded systems software, DBMS and so on. There are relatively few computing areas where C++ has not been involved to some degree, largely due to its high performance, robustness and flexibility.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

C# is Microsoft's programming language for the common language infrastructure, primarily for use in its .NET initiative. It is based on C++ principals, but is not cross-platform and is highly abstract.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the differences between C plus plus and C sharp?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

What is the difference between cc plus plus and c sharp?

C# is inherited from c++ with some additional features


What are the main differences between Java and C plus plus?

the difference is that c plus is better because you get big grades


Does c sharp work on c or c plus plus compilers or you need a c sharp compiler?

They are different languages, each of them requires its own compiler.


C program to print numbers 1 to n?

how do we use loops in c plus plus programing and what are basic differences between do,for and while loop


Is there a h note?

No. There are a (plus a flat and a sharp), b (plus b flat and b sharp), c (flat and sharp), d (flat and sharp), e (flat and sharp), f (flat and sharp), and g (flat and sharp). That makes a, b, c, d, e, f, g Plus the flat and sharp for each, making 21 notes of the scale.


What is C sharp to E sharp?

The E sharp is the F note. The interval between C sharp and F (e sharp) in two whole steps.


Why does VisualStudio c plus plus not have an option to give functions It is in VS c Sharp?

Turn on the intellisense feature.


How many half steps are there between c sharp and c natural?

No


What is a b sharp and where is it located on the piano?

A B sharp is actually a C, and it's a half step up from B and a half step down from C sharp. So basically its between B natural and C sharp.


What is the differences between smalltalk and c plus plus?

Smalltalk is dynamically typed whereas C++ is statically typed. As a result C++ performs better than Smalltalk. However, Smalltalk inheritance is less strict than C++ so it's a bit more flexible.


What is the different between turbo c plus plus and unix c plus plus?

There is no such thing as 'unix C++'.


What are the applications which visual c plus plus can work and visual c sharp won't work?

I can't think of any areas in which one would work over the other. The difference between the two languages is more likely to be performance and speed.