Difference between C++ and C#.net

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are Regex / regular expressions ?

596


How to use delegates with events?

555


What Is A Multicast Delegate?

547


How many kinds of elements an array can have?

474


how dot net compiled code will become platform independent?

529






What's the difference between the debug class and trace class? Documentation looks the same.

506


Explain the role of the datareader class in ado.net connections?

468


What is console read in c#?

489


What are Memory foot print of an exe?

509


What are cshtml files?

488


What is the use of ispostback in c#?

474


What are the methods in c#?

530


What are strongly typed objects?

484


How do I create multifile assembly?

510


What is default access modifier for class in c#?

500