allocate struct on the heap in C
123085
How to malloc inside a function and return pointer in C?
48505
How to use a C++ string in a structure when malloc()-ing the same structure?
80821
Marshal a C struct containing a variable length array
46038
Why are my struct's members not properly initialised using `{}`?
120082
C structure initialization?
36984
Struct Confusion in C
87590
How do you 'realloc' in C++?
120167
sizeof empty structure is 0 in C and 1 in C++ why?
149863
Zero size struct
131696
Why does malloc(0) return a non-null address in Windows?
158820
Dynamic Memory Allocation
115881
How to allocate and deallocate heap memory for 2D array?
105070
Are there any downsides to passing structs by value in C, rather than passing a pointer?
26047
when to carefully use free() to free up malloc() used memory?
85305
How can I get the size of a memory block allocated using malloc()?
96925
Pass double pointer in a struct to CUDA
153717
dynamic allocating array of arrays in C