Interview Questions

How do you declare constants?

Mercury WinRunner FAQ

(Continued from previous question...)

How do you declare constants?

The const specifier indicates that the declared value cannot be modified. The class of a constant may be either public or static. If no class is explicitly declared, the constant is assigned the default class public. Once a constant is defined, it remains in existence until you exit WinRunner.
The syntax of this declaration is:
[class] const name [= expression];

(Continued on next question...)

Other Interview Questions