C #pragma:
The #pragma is a preprocessor directive which is used to get additional information related to machine or operating-system features by the compiler.
Some of the commonly used #pragma directives are:
- #pragma argsused
- #pragma exit
- #pragma hdrfile
- #pragma hdrstop
- #pragma inline
- #pragma option
- #pragma saveregs
- #pragma startup
- #pragma warn
Syntax:
#pragma_directives identifiers
Example:
#include<stdio.h> void first() ; #pragma startup first #pragma exit first void main() { printf("\nBye C."); } void first() { printf("\nHello C."); } |
Output
Hello C.
Bye C. |