allocatable_array_test, a C code which demonstrates how a main program can declare an allocatable array, which is then passed to a subroutine which allocates it, initializes it, and returns it to the calling program for further use.
The information on this web page is distributed under the MIT license.
allocatable_array_test is available in a C version and a C++ version and a Fortran90 version.
c_test, a C code which illustrates features of the C coding language.
c_arrays_test, a C code which uses vectors, matrices and tensors.