Home » C #pragma

C #pragma

The #pragma preprocessor directive is used to provide additional information to the compiler. The #pragma directive is used by the compiler to offer machine or operating-system feature.

Syntax:

Different compilers can provide different usage of #pragma directive.

The turbo C++ compiler supports following #pragma directives.

Let’s see a simple example to use #pragma preprocessor directive.

Output:

I am in func I am in main I am in func 

You may also like