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



Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA