Skip to content

Commit aaf0ab3

Browse files
committed
fix incorrect array stack heap information
1 parent 5f4ace3 commit aaf0ab3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/posts/cpp-for-cscharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ Also as you can see for C++ we dont use the ``new`` keyword because in C++ every
449449

450450
Important differences:
451451
- In C# you write ``int[] name``, while in C++ you write ``int name[]``, it differs where you place the brackets.
452-
- In C# arrays are always on the heap and made with ``new``, while in C++ arrays are on the stack.
452+
- In C# arrays are generally on the heap and made with ``new``, in C++ arrays can be both on the stack or heap
453453
- In C# ``int[][]`` is a jagged array while in C++ ``int[][]`` is a multidimensional array.
454454
- In C++ a list is called a vector (yes thats really confusing).
455455

0 commit comments

Comments
 (0)