[ANSYS, Inc. Logo] return to home search
next up previous contents index

A.4 Constants

Constants are absolute values that are used in expressions and need to be defined in your C program using #define. Simple constants are decimal integers (e.g., 0, 1, 2). Constants that contain decimal points or the letter e are taken as floating point constants. As a convention, constants are typically declared using all capitals. For example, you may set the ID of a zone, or define constants YMIN and YMAX as shown below:

#define WALL_ID 5
#define YMIN 0.0
#define YMAX 0.4064


next up previous contents index Previous: A.3 C Data Types
Up: A. C Programming Basics
Next: A.5 Variables
Release 12.0 © ANSYS, Inc. 2009-01-14