diff --git a/docs/chapter_data_structure/data_and_memory.md b/docs/chapter_data_structure/data_and_memory.md index 5d4922469..016419d98 100644 --- a/docs/chapter_data_structure/data_and_memory.md +++ b/docs/chapter_data_structure/data_and_memory.md @@ -58,10 +58,10 @@ comments: true ```cpp title="" /* 使用多种「基本数据类型」来初始化「数组」 */ - int numbers[5] = {0}; - float decimals[5] = {0}; - char characters[5] = {'0','0','0','0','0'}; - bool booleans[5] = {0}; + int numbers[5]; + float decimals[5]; + char characters[5]; + bool booleans[5]; ``` === "Python"