Javatpoint Logo
Javatpoint Logo

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



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