Skip to main content
C3 Tutorial
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Constants

In C3, a constant is a compile-time value declared with the const keyword. The name of a constant can only contain uppercase letters, numbers, and underscores.
Constants can be both explicitly typed and untyped when the type can be inferred.

Unlike in C, there is no way to create a runtime value that cannot be modified.