How does C# differ from C++?

 Posted by Bharathi Cherukuri on 4/20/2012 | Category: C# Interview questions | Views: 3063 | Points: 40

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 

Comments or Responses

Login to post response