HP C/iX Reference Manual (31506-90011)
28 Chapter3
Data Types and Declarations
Declarations
const float pi = 3.14; /* a constant float, initialized *
/
const float *const pi_ptr = π /* a constant pointer to a constant
float, initialized with an
address constant *
/
static j1, j2, j3; /* initialized to zero by default *
/
typedef struct
{double real, imaginary;} Complex; /* declares a type name *
/
Complex impedance = {47000}; /* second member defaults to zero *
/
enum color {red=1, green, blue}; /* declares an enumeration tag and
three constants *
/
int const short static volatile signed
really_Strange = {sizeof '\?'}; /* pretty mixed up *
/
Invalid Declarations:
int ; /* no identifier */
; /* no identifier */
int i; j; /* no specifiers for j */