answersLogoWhite

0

Preprocessing directives are statements that begin with a # token. These statements are processed prior to compilation, thus the compiler never sees them (hence the term, preprocessed). Preprocessing primarily allows a translation unit (a source file) to include code from other files (header files), via the #include directive, as well as to conditionally compile code using the #ifdef, #ifndef, #else and #endif directives in conjunction with the #define directive.

The #define directive is also used to define macros. Macros may be assigned a value and wherever the symbol appears in your code, that symbol is replaced with the value by the preprocessor. Macros can also be used to define functions for inline expansion. However, because the compiler never sees the macro definition, it cannot help you debug them. They are not type safe and are best avoided whenever possible.

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

What is the difference between c and c plus plus extension?

c language is the structure oriented language and c does not follows the object oriented paradigms . c++ obeys the all object oriented language characteristics ========== C++ is a set of extensions to the C language to allow some (not all) principles of object-oriented programming to be used. Originally, C++ was a front end pre-processor for C and C++ compilers will translate C language functions.


What are the types of Processor faults in c?

Processor faults are not related with a specific programming language.


What is a role of co-preprocessor in c?

Co-processor and pre-processor are two different thing. Pick one.


What is if-statement in c programming language?

One of the statements, obviously.


Different unconditional statement in C programming language?

The C programming language is generally made up of common conditional statements. Occasionally, unconditional statements such as test that are based on imperative commands.


How can program for c language?

first think of the logic and then write the statements


What is difference between control statements and looping statements in c language?

differance between control statement and looping statement?


What is a processor in c plus plus?

A processor typically refers to the Central Processing Unit (CPU), however any device or software that processes an input to produce an out put is a processor. There are no processors in C++, it is a programming language, but you can use C++ to create one.


Four basic instruction in C language?

They are 'statements' to speak strictly, they are: , , if, else, while, for, do, return, switch, break, continue, gotoNote: is zero or more statements between '{' and '}'


What is else if in C programming language?

Statements. Typical usage: if (<condition>) <statement>; else <statement>;


How do you write assembly level language program in c?

Unless your particular C implementation allows for direct writing of assembly code, you can't. C is a high-level language and you usually cannot directly issue instructions to the processor. The assembly languages are a set of architecture-specific commands that can be directly executed by a processor.


Which language is processor to c programming language?

That depends on each individual compiler. Some are written in assembly, some in C/C++, others are written in whatever high-level language the author likes best.