Difference between C++ and C#.net

Answers were Sorted based on User's Feedback



Difference between C++ and C#.net..

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

Difference between C++ and C#.net..

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

Difference between C++ and C#.net..

Answer / gopal priya bhardwaj

c++ allow multiple inheritance but C# does not support
multiple inheritance

Is This Answer Correct ?    4 Yes 2 No

Difference between C++ and C#.net..

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

Difference between C++ and C#.net..

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

Difference between C++ and C#.net..

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

Difference between C++ and C#.net..

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

Difference between C++ and C#.net..

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

Difference between C++ and C#.net..

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

Post New Answer

More C Sharp Interview Questions

What is field in c#?

0 Answers  


What is parallel foreach in c#?

0 Answers  


What?s an interface class?

1 Answers  


What is thread pooling?

0 Answers  


why C# called C#

3 Answers  






Can we extend static class in c#?

0 Answers  


Is array immutable in c#?

0 Answers  


wt is namespace? wt is the use?

12 Answers  


What is shared inheritance

3 Answers   IGT,


What is the difference between list and array in c#?

0 Answers  


Which namespace is required to implement trace ?

0 Answers  


What does int parse do in c#?

0 Answers  


Categories