Author Topic: Difference Between C++ and C#.Net???  (Read 2830 times)

0 Members and 1 Guest are viewing this topic.

Offline cynusalisa

  • Banned
  • Newbie
  • *
  • Points: 0
  • Posts: 12
    • View Profile
    • http://ggi.ac.in/
Difference Between C++ and C#.Net???
« on: October 23, 2012, 05:54:13 pm »
Hello,

Please anyone explain the difference between C++ and C#.Net?
**** NO ADVERTISEMENTS ****
You do not have permission to give points
point 0 Points

This topic did not receive points.

Offline prateek93

  • Member
  • Full Member
  • *
  • Points: 3
  • Posts: 169
    • View Profile
Difference Between C++ and C#.Net???
« Reply #1 on: October 23, 2012, 06:38:12 pm »
C++ and C# are languages whereas .net is framework.

Code written in c, c++ etc. are only meant for specific os, cpu architecture, that means if you write a code for one computer and make exe file, it wont run on another computer.
Your written code will run in your friends pc, because we all use clones of intel pc.

.net is a framework, which contains libraries + some extra stuff.

C# language inherits most of its syntax from c++, and share the libraries of .net framework.

If you write code in c# and run in any computer having .net framework, it will run.

It is just like java, which runs on any pc having jvm.

Offline ranjan82

  • Newbie
  • *
  • Points: 5
  • Posts: 5
    • _
      Not Specified
    • View Profile
Re: Difference Between C++ and C#.Net???
« Reply #2 on: January 08, 2014, 06:45:54 pm »

C++
In C++ programmer have to free the memory.
In C++ multiple inheritance is supported   
In C++ we have pointers which manipulate memory illegally   
In C++ access modifiers are public, private and protected.
in C++ uses semicolon at the end of class definition.   


Major Difference between C++ and C#


in C++ supports macros.   
in C++ is language not type-safe.   
in C++code usually compiles to assembly language   


C#


In C# has Garbage collector which frees the memory
In C# multiple inheritance is not supported
In C# we access memory legally.
In C# access modifiers are public, private, protected, Internal and protected internal.
In C# does not use semicolon at the end of class definition.
In C# does not support macros.
In C# is language type-safe.
In C# code usually compiles to intermediate language.


hope it will help someone in need,
Ranjan Kumar
jobs in banks

Offline thomaswhite544

  • Newbie
  • *
  • Points: 10
  • Posts: 10
    • _
      Not Specified
    • View Profile
Re: Difference Between C++ and C#.Net???
« Reply #3 on: February 04, 2016, 04:25:54 pm »
C# is only a remote vision of them. It's actually more like Java in many ways. It looks more like Java than C++, It is not compiled into     machine language but instead into the .Net byte code, it has managed garbage collected memory handling, it is object oriented. C++ is low level and indeed platform neutral programming language.

When compiled C# code is converted into intermediate language code, it is then converted into executable code. When compiled C++ code converted into assembly language code.





 

Difference Between Draft Lokpal Bill and Jan Lokpal Bill

Started by techmaniac

Replies: 0
Views: 3406
Last post April 08, 2011, 02:37:05 pm
by techmaniac
Difference between bluetooth 2.0 and bluetooth 2.1

Started by Shankynayak

Replies: 1
Views: 1946
Last post August 18, 2012, 12:19:49 pm
by RamakantPareek
Difference Between Fraunhofer Diffraction And Fresnel Diffraction

Started by XYLS

Replies: 1
Views: 3675
Last post January 06, 2014, 05:23:53 pm
by ranjan82
What is the difference b/w morning shift and evening shift

Started by BEN TENNYSON

Replies: 6
Views: 5013
Last post May 09, 2013, 10:13:03 pm
by Champ
Difference Between Nokia 920, Samsung Galaxy S3 And Apple iPhone 5

Started by XYLS

Replies: 2
Views: 2211
Last post January 06, 2014, 05:18:58 pm
by ranjan82
Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49