Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 29th, 2006, 12:31 PM
Registered User
 
Join Date: Jul 2006
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default c# and c++

 hi what are the main differences between c# and c++

Reply With Quote
  #2 (permalink)  
Old July 30th, 2006, 03:39 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

Please take a look here and see if that helps: http://www.catb.org/~esr/faqs/smart-questions.html

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Reply With Quote
  #3 (permalink)  
Old August 4th, 2006, 12:20 AM
Registered User
 
Join Date: Jan 2006
Location: delhi, delhi, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear sreenu,
The information i'm giving as per my knowledge is right.
here is your question result.

Difference between C# and C++

1. C# does not support multiple inheritance.
2. C# does not support pointer types for manipulating. However, they are used in ‘UNSAFE CODE’.
3. We can only create objects using new keyword.
4. Arrays are classes in C# and therefore they have built in functionality for operations like searching, sorting and reversing.
5. Arrays are referenced types rather than value types as they are in C++ and therefore stored in the heap.
6. C # does not allow silent fall through in switch statements It requires explicit jump statements at the end of each case statement.
7. In C#, switch can also be used on string values.
8. C# does not support default arguments.
9. In exception handling, unlike in C++ ,we cannot throw ant type in c#. The thrown value has to be reference to a derived class or System.Exception object.
10. We can’t access static members via an object , as we can in C++;
11. C# defines null as a keyword and considers it as an intrinsic value.
12. General catch statement catch(…) in C++ is replaced by simple catch in C#.

Features of C++ which are dropped
1. Macros
2. Multiple Inheritance
3. Templates
4. Pointers
5. Global variables
6. Default arguments
7. Constants number functions

Enhancement to C#
1. Automatic Garbage Collection
2. Versioning support
3. Strict type safety
4. Delegates and events
5. Boxing and unboxing
6. Web services



I hope u like it.

with regards
Dev
Reply With Quote
  #4 (permalink)  
Old August 4th, 2006, 12:28 AM
Registered User
 
Join Date: Jan 2006
Location: delhi, delhi, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Imar,
i like your given link.I got the point which you suggest.Thanks. I hope other guys whoever read your reply got the point.

with regards
Dev
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off




All times are GMT -4. The time now is 03:53 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.