Get the latest tech news
Fortran for C Programmers
¶ This note is limited to essential information about Fortran so that a C or C++ programmer can get started more quickly with the language, at least as a reader, and avoid some common pitfalls when starting to write or modify Fortran code. Please see other sources to learn about Fortran’s rich history, current applications, and modern best practices in new code.
The standards sometimes designate features as being deprecated, obsolescent, or even deleted, but that can be read only as discouraging their use in new code – they’ll probably always work in any serious implementation. They are parameterized with “kind” values, which should be treated as non-portable integer codes, although in practice today these are the byte sizes of the data. With some work, one can also specify a general constructor function, since Fortran allows a generic interface to have the same name as that of a derived type.
Or read this on Hacker News