allocatable_array_test


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.

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license.

Languages:

allocatable_array_test is available in a C version and a C++ version and a Fortran90 version.

Related Data and Programs:

cpp_test, a C++ code which illustrates some of the features of the C++ programming language.

cpp_arrays_test, a C++ code which uses vectors, matrices and tensors.

Examples and Tests:


Last revised on 13 October 2019.