Relative Content

Tag Archive for arraysinitializationmalloc

Initializing an array created with malloc with arbitrary values

I need to create large float arrays using malloc, to be able to free the memory when I don’t need the array anymore.
The values are arbitrary, meaning they are not all zeros or ones, much more random but coming from computations from another code. They can be stored in a .h file.