HP C A.06.05 Reference Manual
Data Types and Declarations
Type Specifiers
Chapter 340
Type Specifiers
Type specifiers indicate the format of the storage associated with a given data object or the
return type of a function.
Syntax
type-specifier
::=
char
short
int
long
long long
unsigned
signed
float
double
void
_Bool
_Complex
_Imaginary
struct-or-union-specifier
enum-specifier
typedef-name
Description
Most of the type specifiers are single keywords. (Refer to Chapter 10, “HP C/HP-UX
Implementation Topics,” on page 235 for sizes of types.) The syntax of the type specifiers
permits more types than are actually allowed in the C language. The various combinations of
type specifiers that are allowed are shown in Table 3-1. Type specifiers that are equivalent
appear together in a box. For example, specifying unsigned is equivalent to unsigned int.
Type specifiers may appear in any order, possibly intermixed with other declaration specifiers.
Table 3-1 C Type Specifiers
void
char
signed char