enum { a, b, c };
which would define the three constants a, b and c,
giving them the values 0, 1 and 2, respectively.
Constants may also be initialized to specific values, like
enum { a, b = 5, c };
where a would be 0, b would be 5 and
c would be 6.
| Index | Copyright © 2005 CadSoft Computer GmbH |