Connected: An Internet Encyclopedia
3.17 Constant

Up: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 1832
Up: 3. XDR DATA TYPES
Prev: 3.16 Void
Next: 3.18 Typedef

3.17 Constant

3.17 Constant

The data declaration for a constant follows this form:

         const name-identifier = n;

"const" is used to define a symbolic name for a constant; it does not declare any data. The symbolic constant may be used anywhere a regular constant may be used. For example, the following defines a symbolic constant DOZEN, equal to 12.

         const DOZEN = 12;


Next: 3.18 Typedef

Connected: An Internet Encyclopedia
3.17 Constant