Difference between C++ and C#.net
Answers were Sorted based on User's Feedback
Answer / azzy
first and foremost, C++ is a three character word and C# is two character word :D :D :D :P
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sanjana
-->C++ programs are saved as with .cpp extension while
C# programs are saved as with .cs extension.
--> C++ programs are compiled with
cc filename.cpp
and
C# programs are compiled with
csc filename.cs
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / gopal priya bhardwaj
c++ allow multiple inheritance but C# does not support
multiple inheritance
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / monu sharma
C# is a distinct language from C++. C++ is designed for
general object oriented programming in the days when the
typical computer was a standalone machine running a command
line-based user interface. C++ is a general-purpose
programming language with high-level and low-level
capabilities. It is a statically typed, free-form,
multi-paradigm, usually compiled language supporting
procedural programming, data abstraction, object-oriented
programming, and generic programming.
C# is a simple, modern, object oriented, and type-safe
programming language derived from C and C++. C# (pronounced
C sharp) is firmly planted in the C and C++ family tree of
languages, and will immediately be familiar to C and C++
programmers. C# aims to combine the high productivity of
Visual Basic and the raw power of C++.
However it is also undeniable that the two languages are
very similar in both their syntax and in that they are both
designed to facilitate the same paradigm of programming, in
which code is based around hierarchies of inherited classes.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / varun
c++ was older version while c# is obtained by merging features of c++ and java
Is This Answer Correct ? | 15 Yes | 16 No |
Answer / rajesh
C++ uses Object oriented concepts for their programming
where C# is pure object oriented language.One point that
support the above statement is
where as c++ supports multiple inheritance while C#
only single inheritance.
One feature of OOPs language is "Supporting Single
Inheritance"
Is This Answer Correct ? | 6 Yes | 7 No |
Answer / jana
c++ is object oriented language c++does not support the gui
features
c# is pure object oriented language and it support the gui
features
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / sivaraman.s
Default access Specifier is Public in c++.
Default access Specifier is Private in c#.net.
Is This Answer Correct ? | 36 Yes | 55 No |
Answer / basveshwar
C++ uses the "include" header files where as c# uses the
namespaces,
C++ runs for assmebly languages
where as c# runs in .net framework,
Pointers can be used anywhere in c++
but in c# pointers are used only in unsafe mode.
C++ does not support the multiple inheritance,c# support
mulutiple inheritance.
Is This Answer Correct ? | 12 Yes | 41 No |
What is field in c#?
What is parallel foreach in c#?
What?s an interface class?
What is thread pooling?
why C# called C#
Can we extend static class in c#?
Is array immutable in c#?
wt is namespace? wt is the use?
What is shared inheritance
What is the difference between list and array in c#?
Which namespace is required to implement trace ?
What does int parse do in c#?