Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 30-01-2011
Member
 
Join Date: Nov 2009
Posts: 518
C sharp v/s C plus plus

Well I am in the first year of my Bsc IT course , although I am doing the . NET course parallely, I began with the procedural C language first , then I stepped into the Object oriented , the C++ language came into picture , as I have gone through my whole 3 year curriculum , I am going to learn the C# language as well , but I do not know the exact difference between those two , can anyone help me on this.
Reply With Quote
  #2  
Old 30-01-2011
Member
 
Join Date: May 2009
Posts: 532
Re: C sharp v/s C plus plus

I have been taking a initial look at C# a little while ago, since I wanted to be familiar with if it is worth looking into, and since I am thinking about polish up my standard on Parallel coding here at the university with a modest language diversification. I have taught it using POSIX Threads before, but since everyone and even their predecessor seems to use Java or C# these days, throwing in 2 examples in these languages will not have much impact on . And apart from that I was a bit inquisitive .
Reply With Quote
  #3  
Old 30-01-2011
Member
 
Join Date: May 2009
Posts: 523
Re: C sharp v/s C plus plus

Well I can say a clear difference in both the language . it lies in the pointers , C # does not support the concept of pointers , even if it does it is type safe, it implies that even if you create any pointer in the # it will satisfy all the rules of type safety , but C++ codes are not type safe and provides and implementation of pointers, instead in C++ the delegates are used to point to a method.
Reply With Quote
  #4  
Old 30-01-2011
Member
 
Join Date: May 2009
Posts: 533
Re: C sharp v/s C plus plus

Yes there other differences as well C# , you can refer to the following points ,

  • In C# value types and reference types subsist (struct is value-type, class is reference-type)
  • value types lie or store on the stack, reference types are stored on the heap
  • references can point to null (must not be applicable)
  • code is wrapped up in assemblies in C#
  • no automatic type conversionconversion from int to bool in C#
  • main-function is referred Main in C#
  • there does not exist any semicolon after a class is being declared declaration in C#
  • everything inherits from object or can be considered .
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "C sharp v/s C plus plus"
Thread Thread Starter Forum Replies Last Post
Sharp 007SH Hybrid An 3D Clamshell Android Phone by Sharp jackalz Web News & Trends 3 22-05-2011 07:28 AM
What are the features of C Sharp? Prashobh Mallu Software Development 5 02-02-2010 02:49 PM
Use of delegates in C sharp opaper Software Development 5 25-01-2010 01:44 PM
C sharp Serialization Truster Software Development 5 14-01-2010 08:40 AM
c sharp ticks Sumit21 Software Development 0 04-06-2009 09:38 PM


All times are GMT +5.5. The time now is 01:35 AM.