Javatpoint Logo
Javatpoint Logo

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


Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA