Dynamic array ot not
Salih Dincer
salihdb at hotmail.com
Sun Jan 16 15:32:41 UTC 2022
On Sunday, 16 January 2022 at 11:43:40 UTC, Ali Çehreli wrote:
>
> void main() {
> enum count = 7;
>
> // Allocate some memory
> void* rawData = malloc(int.sizeof * count);
If count is not equal to 8 I get weird results! The reason of
course, is the free():
// [93947717336544, 1, 2, 3, 4, 5, 6]
I remarked it for exclusion purposes but I couldn't try it as
char. [Here](https://run.dlang.io/is/yFmXwO) is my test code.
More information about the Digitalmars-d-learn
mailing list