The ANSI committee has added some more preprocessor directives to the existing list. They are: #elif Directive The #elif directive enables us to establish an “if…else…if” sequence for testing multiple conditions. The syntax is as shown below: 1 2 3 4 5 6 7 #if expr1 Stmts; #elif expr2 Stmts; #elif expr3 Stmts; #endif #pragma Directive The #pragma directive is an implementation oriented directive that allows the user to specify various instructions to be given to the compiler. Syntax is as follows: 1 #pragma name Where name is the name of the pragma we want. For example, under Microsoft C, #pragma
The post what are the pre processor directives recognised by ANSI appeared first on Coding Security.
what are the pre processor directives recognised by ANSI
read more
Tidak ada komentar:
Posting Komentar