0

Why dynamic memory allocation for creation of object in c#

coming to c++ memory will be allocated at creation of object ... demo d; ..automatically memory will be allocated ..in c# its like demo d=new demo(); which means after instantiation memory is allocated ..can any one explain the reason

4th Mar 2017, 5:59 AM
Chowdary Tanu
Chowdary Tanu - avatar
2 Antworten
0
The new of C# is not the new of C++, they are two different languages :)
4th Mar 2017, 6:42 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
0
if u gave like ..demo d; .. memory is not going to be allocated in c# ..coming to c++ ...demo d;... will allocate memory ..what's the difference
4th Mar 2017, 7:14 AM
Chowdary Tanu
Chowdary Tanu - avatar