Skip to main content
Engineering LibreTexts

10: Character Data, Sizeof, Typedef, Sequence

  • Page ID
    10302
    • 10.1: Character Data Type
      The character data type basically represents individual or single characters. Characters comprise a variety of symbols such as the alphabet (both upper and lower case) the numeral digits (0 to 9), punctuation, etc. All computers store character data in a one byte field as an integer value. Because a byte consists of 8 bits, this one byte field has 28 or 256 possibilities using the positive values of 0 to 255.
    • 10.2: Sizeof Operator
      Every data item, constants and variables, not only have a data type, but the data type determines how many bytes the item will use in the memory of the computer. The size of each data type varies with the complier being used and the computer. This effect is known as being machine dependent.
    • 10.3: Typedef - An Alias
      The typedef statement allows the programmer to create an alias, or synonym, for an existing data type. This can be useful in documenting a program.
    • 10.4: Sequence Operator
      The sequence (or comma) operator is used to separate items. It has several uses.
    • 10.5: Practice 9 Character Data, Sizeof, Typedef, Sequence