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