Skip to content

callocの備考 #1463

@faithandbrave

Description

@faithandbrave

calloc関数の備考について、以下の記載がありますが、出典はどちらになるでしょうか?
メモリの連続性は当然あるものだと思っているのですが (そうじゃないと配列として使えないですよね)、メモリ割り当ての順序についても、規格書かコンパイラドキュメントなど、どこかに記載あるでしょうか?

https://github.com/cpprefjp/site/blob/master/reference/cstdlib/calloc.md

- `calloc`、`malloc`および `realloc`関数による連続的なメモリ確保によるメモリの割当の順序、連続性は不定である。

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions