cpp-intro icon indicating copy to clipboard operation
cpp-intro copied to clipboard

22章 配列: 図が間違っている?

Open shimon1024 opened this issue 6 years ago • 1 comments

バージョン: commit a23c2c37c85cc172e99254342fe6c394838f1b56 及び 書籍版の初版

「22章 配列」のint型5要素の配列のストレージの図が、文章ではintが4byteの環境での話としているのに、図では1要素2byteとなっていて、末尾の(0~4番目の内の)4番目の要素が20byteのストレージのちょうど真ん中に来てしまっています。 顧客が本当に必要な図は、1要素4byteとして、末尾の4番目の要素が20byteのストレージのちょうど最後に来る図でしょうか。

shimon1024 avatar Sep 21 '19 11:09 shimon1024

該当箇所:

  • https://github.com/EzoeRyou/cpp-intro/blob/a23c2c37c85cc172e99254342fe6c394838f1b56/fig/fig22-01.png
  • https://github.com/EzoeRyou/cpp-intro/blob/a23c2c37c85cc172e99254342fe6c394838f1b56/022-implement-array.md

shimon1024 avatar Sep 21 '19 11:09 shimon1024