Skip to main content

Working with Fundamental Data Types

  • Chapter
  • First Online:
Beginning C++20
  • 3141 Accesses

Abstract

In this chapter, we expand on the types that we discussed in the previous chapter and explain how variables of the basic types interact in more complicated situations. We also introduce some new features of C++ and discuss some of the ways that these are used.

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 EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    The other advantages of the using syntax over the typedef syntax manifest themselves only when specifying aliases for more advanced types. Using using, for instance, it’s much easier to specify aliases for function types. You’ll see this in Chapter 19. The using keyword moreover allows you to specify so-called type alias templates, or parameterized type aliases, something that is not possible using the old typedef syntax. We’ll show you an example of an alias template in Chapter 19 as well.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Ivor Horton and Peter Van Weert

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Horton, I., Van Weert, P. (2020). Working with Fundamental Data Types. In: Beginning C++20. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5884-2_3

Download citation

Publish with us

Policies and ethics