Skip to content

Commit

Permalink
Update array.md (krahets#890)
Browse files Browse the repository at this point in the history
* Update array.md

* Update array.md

---------

Co-authored-by: Yudong Jin <[email protected]>
  • Loading branch information
syd168 and krahets authored Oct 26, 2023
1 parent e441ee4 commit 356db47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/chapter_array_and_linkedlist/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/* 初始化数组 */
// 存储在栈上
int arr[5];
int nums[5] { 1, 3, 2, 5, 4 };
int nums[5] = { 1, 3, 2, 5, 4 };
// 存储在堆上(需要手动释放空间)
int* arr1 = new int[5];
int* nums1 = new int[5] { 1, 3, 2, 5, 4 };
Expand Down

0 comments on commit 356db47

Please sign in to comment.