Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 23rd Jul 2011, 02:03 AM   #1
HyperActive Warrior
 
Join Date: 2010
Posts: 152
Thanks: 0
Thanked 4 Times in 4 Posts
Default
Difference between C++ and C#
Share on: 
fb share twitter share gplus share more share

What is diff between C and C#?
Give me your point of view about this?

olakh is offline  
Unread 23rd Jul 2011, 09:36 AM   #2
HyperActive Warrior
 
Join Date: 2011
Posts: 120
Thanks: 2
Thanked 4 Times in 4 Posts
Default
Re: Difference between C++ and C#
Share on: 
fb share twitter share gplus share more share

I have little knowledge about programming languages
But C# advanced than C and C++.
Like some short way in c#
Ibcontact is offline  
Unread 23rd Jul 2011, 02:12 PM   #3
Active Warrior
War Room Member
 
Join Date: 2009
Posts: 58
Thanks: 3
Thanked 8 Times in 6 Posts
Default
Re: Difference between C++ and C#
Share on: 
fb share twitter share gplus share more share

That question is so broad it will require an answer way bigger than anyone has time to write here.

The biggest difference is that c# is a managed language and hence some what machine independent.
windfinder is offline  
Unread 23rd Jul 2011, 11:43 PM   #4
Active Warrior
 
Join Date: 2011
Posts: 38
Thanks: 5
Thanked 0 Times in 0 Posts
Default
Re: Difference between C++ and C#
Share on: 
fb share twitter share gplus share more share

C# is a higher level language than C++, it's easier to learn as it provide many features like automatic memory management(garbage collection) and all the tools of the .NET framework. but generally speaking. programs written by C# can only work on Windows(though by simulation it can work on other systems).

Musique is offline  
Unread 24th Jul 2011, 12:56 PM   #5
Hardcore Programmer
 
Subsonic's Avatar
 
Join Date: 2011
Location: North-Europe
Posts: 33
Thanks: 6
Thanked 9 Times in 7 Posts
Default
Re: Difference between C++ and C#
Share on: 
fb share twitter share gplus share more share

Basically C++ is much older and much more widely used programming language. It's also very effective in terms of speed so it's used in nearly everywhere from games to operating systems. For example Windows OS, Mozzilla Firefox, Winamp and Photoshop are written mostly in C++.

Quote from somewhere I don't remember:

"C++ was designed to be a low-level platform-neutral object-oriented programming language. C# was designed to be a somewhat higher-level component-oriented language"

For example C# compiler in Visual Studio (an IDE for C#, VB.Net etc. development by Microsoft) is developed with C++.
Subsonic is offline  
Unread 24th Jul 2011, 03:16 PM   #6
Senior Warrior Member
War Room Member
 
Join Date: 2010
Posts: 1,072
Thanks: 339
Thanked 194 Times in 134 Posts
Default
Re: Difference between C++ and C#
Share on: 
fb share twitter share gplus share more share

Here is how I would prioritize them:

C++ = WIN32
C = Linux
Jake Gray is offline  
Unread 25th Jul 2011, 02:37 AM   #7
Hardcore Programmer
 
Subsonic's Avatar
 
Join Date: 2011
Location: North-Europe
Posts: 33
Thanks: 6
Thanked 9 Times in 7 Posts
Default
Re: Difference between C++ and C#
Share on: 
fb share twitter share gplus share more share

What the f*ck johnsmith22, direct copy paste from a blog... Didn't even bother summarizing the post so others would get some help from that?
Subsonic is offline  
Unread 25th Jul 2011, 04:09 AM   #8
Warrior Member
 
Siegfried's Avatar
 
Join Date: 2011
Posts: 24
Thanks: 0
Thanked 4 Times in 4 Posts
Default
Re: Difference between C++ and C#
Share on: 
fb share twitter share gplus share more share

C# is microsoft thing, used in windows/xbox programming
C,C++ are world standards, commonly used in programming on all kind of platforms

Siegfried is offline  
Unread 25th Jul 2011, 05:05 AM   #9
Active Warrior
 
Join Date: 2011
Posts: 61
Thanks: 0
Thanked 4 Times in 4 Posts
Default
Re: Difference between C++ and C#
Share on: 
fb share twitter share gplus share more share

Following are difference between c++ and c#
Difference Between C# and C++ :-
1. Classes in C# are defined are implemented at the same place and so there is no need for using header files.
2. C# does not use header files as it compiles directly from the source code to the executable code.
3. C# does not use semicolon at the end of class definition.
4. C# does not support pointers for manipulating data. However, they are used in codes declared as unsafe.
5. C# does not contain any default constructor.
6. Behaviour of the command line arguments is different in C# as compared to C++.
7. Abstract of C# cannot be implemented.
8. C# does not support macros.
9. Objects in C# can only be created using new keywords.
10. C# allows the switch statement to be used with string values.
11. C# does not support multiple inheritance.
12. Declaration of array is different in C# as compared to C++. Arrays in C# are of reference type while in C++ arrays are of value type.
13. C# does not support the header file,# include.
14. All the data types in C# are inherited from the object super class and therefore they are objects.
15. In C#, structs are of value type.
16. C# does not support the typed of statement.
17. C# supports native Boolean type and Boolean type data can be implicitly or explicitly cast to any data type except object.
18. C# does not support default arguments.

pratap295 is offline  
Closed Thread


Bookmarks

Tags
difference


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 09:03 AM.