O'Reilly logo

Programming in C: A Practical Approach, First Edition by Ajay Mittal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

9

Structures, Unions, Enumerations and Bit-Fields

Learning Objectives

In this chapter, you will learn about:

  • User-defined data types
  • Structures
  • How to define new data types using structures
  • How to declare objects of the newly created structure type
  • Various operations that can be applied on the objects of a structure type
  • Arrays, pointers, functions and structures used in conjunction
  • Creating syntactically convenient name for user-defined types
  • Unions
  • Difference between structures and unions
  • Application of unions in interrupt programming
  • Enumerations
  • Storing information less than a byte by making use of bit-fields

9.1 Introduction

In previous chapters, you have seen that C language provides a rich set of primitive and derived data types ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required