C #error28 Mar 2025 | 1 min read The #error preprocessor directive indicates error. The compiler gives fatal error if #error directive is found and skips further compilation process. C #error exampleLet's see a simple example to use #error preprocessor directive. ExampleOutput: Compile Time Error: First include then compile But, if you include math.h, it does not gives error. ExampleOutput: 2.645751 Next TopicC #pragma |
We request you to subscribe our newsletter for upcoming updates.

We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India