Answer:
C# differs from C++ as follows:
1) C# does not support #include statement. It uses only using statement.
2) In C# , class definition does not use a semicolon at the end.
3) C# does not support multiple code inheritance.
4) Casting in C# is much safer than in c++.
5) In C# switch can be used on string values.
6) As compared to C++, Command line parameters array behave differently in C#.
Asked In: Many Interviews |
Alert Moderator