constants c++ code example
Example 1: const c++
//Syntax: const Class_Name Object_name;
const int MAXN = 1e5 + 5;
const long long mod = (long long)1e9 + 7;
Example 2: c++ constant
#define LENGTH 10
#define WIDTH 5
#define NEWLINE '\n'
//Syntax: const Class_Name Object_name;
const int MAXN = 1e5 + 5;
const long long mod = (long long)1e9 + 7;
#define LENGTH 10
#define WIDTH 5
#define NEWLINE '\n'