Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
This chapter introduces a few new computer science concepts for building and using advanced data types (also known as data structures) such as structures and unions, and shows how these user-defined structures assist programmers in defining a more robust, object-aware type. You will learn the differences and similarities between structures and unions and how they relate to real-world computing concepts. In addition to structures, you will learn more about existing data types and how they can be converted from one type to another using type casting. Specifically, this chapter covers the following topics: