Skip to content

Commit 754232b

Browse files
committed
Update cpp-for-cscharp.md
1 parent 761344d commit 754232b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

content/posts/cpp-for-cscharp.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ Type test = [x, y, z]; // works on collections
338338

339339
- C++ gives more control over stack vs heap
340340
- C++ gives more control about when copy operations are used
341-
- C# classes are reference types (heap), structs are value types (stack)
341+
- C++ the semantics of the new keyword are completely different
342+
- C# decides for you most of the time if stack or heap is used
342343
- C# always requires the new keyword for both structs and classes
343344

344345
## Public / Private

0 commit comments

Comments
 (0)