CSyntax
Define a Constant
Code example
#define MAX 100
const int LIMIT = 10;Defines a constant value.
In C, define a constant: defines a constant value — #define MAX 100 const int LIMIT = 10;
#define MAX 100
const int LIMIT = 10;#define MAX 100
const int LIMIT = 10;Defines a constant value.
Use #define MAX 100 const int LIMIT = 10;.
Use this pattern: #define MAX 100 const int LIMIT = 10;
Yes. Use Copy code and adapt the example to your program.
No. The language syntax is the same across operating systems.