Skip to main content

Zusammenfassung

C kennt zwei verschiedene Gültigkeitsbereiche von Variablen. Variable, die nur in dem Block gültig sind, in dem sie vereinbart worden sind, heißen automatisch (engl, automatic). Die Speicherklasse auto wird in C als Voreinstellung (Default) gewählt, wenn die Variable nicht explizit in eine andere Speicherklasse gesetzt wird. Dies bedeutet, daß die Vereinbarungen

$$\matrix{{{\rm{auto int i;}}} \hfill \cr {{\rm{int i;}}} \hfill \cr} $$

gleichbedeutend sind. Eine automatische Variable hat außerhalb ihres Blocks -gegeben durch das geschweifte Klammerpaar, das die Deklaration der Variablen umfaßt —Wert; man sagt, sie ist außerhalb des Blocks unsichtbar.

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 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.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.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1989 Friedr. Vieweg & Sohn Verlagsgesellschaft mbH, Braunschweig

About this chapter

Cite this chapter

Herrmann, D. (1989). Speicherklassen. In: Effektiv Programmieren in C. Vieweg+Teubner Verlag. https://doi.org/10.1007/978-3-322-83933-6_8

Download citation

  • DOI: https://doi.org/10.1007/978-3-322-83933-6_8

  • Publisher Name: Vieweg+Teubner Verlag

  • Print ISBN: 978-3-528-04655-2

  • Online ISBN: 978-3-322-83933-6

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics