Important Notice:

Course Content
Building IoT Applications (Chapter-4) M4-R5.1
About Lesson

2) C #define preprocessor

The #define preprocessor is also used to define constant.

C#define

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

Syntax:

#define token value

Let’s see an example of #define to define a constant. #include <stdio.h>

#define PI 3.14

main() {

printf(“%f”,PI);

}

Output: 3.140000

error: Content is protected !!