+ 2

What is the difference between c# and cpp?

23rd Dec 2016, 10:40 AM
Alaghusooriya EM
Alaghusooriya EM - avatar
3 Réponses
+ 6
There are quite a number of difference , but they key difference are these : - C++ has pointers, C# do not. But C# have delegates which are quite similar to pointers in C++. (C# have pointers but they are only allowed in 'unsafe' mode) - C# can use ref and out parameters rather than pointers in C++ when passing parameters by reference. - For C#, the datatype 'long' is 64 bits, while it is 34 bits for C++. - In switch statements, C# does not support fall through from one case label to another unlike C++.
23rd Dec 2016, 10:48 AM
Wen Qin
Wen Qin - avatar
+ 3
but I think that from your statement, "c# is the next version of cpp "
23rd Dec 2016, 10:57 AM
Alaghusooriya EM
Alaghusooriya EM - avatar
+ 2
thank you friend
23rd Dec 2016, 10:56 AM
Alaghusooriya EM
Alaghusooriya EM - avatar