how to create constants n c programming code example Example 1: c how to declare a constant const int a = 10; Example 2: define constant c #define N 10