Skip to main content

Structures and Derived Types

  • Chapter
Guide to Fortran 2003 Programming
  • 3465 Accesses

Fortran arrays allow data to be grouped, but only if all items have the same data type. It is often useful to use a structure, which is a compound object consisting of values that may be of different data types. Derived types are used to define the form of structures. It is possible to define new operations on defined types, creating abstract data types. Derived types and their operations are defined in a module, making them globally available to many programs.

An interesting kind of structure is a recursive data structure, which can be built and manipulated using pointers. Examples of these structures are found in the form of linked lists (10.3), trees (10.4), and queues (12.4).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Walter S. Brainerd .

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Walter S. Brainerd

About this chapter

Cite this chapter

Brainerd, W.S. (2009). Structures and Derived Types. In: Guide to Fortran 2003 Programming. Springer, London. https://doi.org/10.1007/978-1-84882-543-7_6

Download citation

  • DOI: https://doi.org/10.1007/978-1-84882-543-7_6

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-84882-542-0

  • Online ISBN: 978-1-84882-543-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics