Javatpoint Logo

91-9990449935

 0120-4256464

C #define

The #define preprocessor directive is used to define constant or micro substitution. It can use any basic data type.

Syntax:

Let's see an example of #define to define a constant.

Output:

3.140000

Let's see an example of #define to create a macro.

Output:

Minimum between 10 and 20 is: 10
Next TopicC #undef