Prof. Mukesh N. Tekwani Email: firstname.lastname@example.orgPage 2 of 310.
: It can be used for diverse projects such as word-processors, graphicsapplications, spreadsheets, windows applications, and compilers for other languages.11.
: Versioning means the creation and management of multiple versions of a software.All versions have the same general function but they are improved, upgraded or customized. Newversions of software modules can work with existing applications. C# supports versioning with thekeywords called
: C# enforces the .NET common language specifications and allows inter operationwith other .NET languages such as VB .NET.
Shortcomings / Drawbacks of C++:
C++ is a complex language.2.
C++ is not truly object-oriented.3.
It is not suitable for Web technologies.4.
It does not support versioning.5.
It is not type-safe.6.
C++ supports pointers which can result in major errors in programs.
Differences between C# and C++ :
Although C# is derived from C++, there are many differences between these two languages. These are:1.
C# does not support the
C# does not support pointer types.3.
C# supports a native Boolean data type.4.
The entry point of both C# and C++ programs is a main method. In C#, the main method is writtenas
(beginning with capital M), while in C++, the main method is written as
(startingwith small m).5.
C# supports four iteration statements rather than three in C++. The fourth statement is called
C# can check overflow of arithmetic operations and conversions.7.
C# compiles from source code to object code. Object files are not produced.8.
All basic value types will have the same size on any system. This is not the case with C or C++.Therefore C# is more suitable for writing distributed applications.9.
C# checks for uninitialized variables and gives error messages at compile time. In C++, anuninitialized variable is not detected and causes errors in the output.10.
Arrays are classes in C# and operations such as sorting, reversing, and searching can be carried out.11.
Type casting in C# is safer than in C++.12.
C# does not allow silent fall through in switch statements. We must give an explicit jump statementat the end of each case statement.
Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.