answersLogoWhite

0

Preprocessor directives are instructions to the preprocessor which modify the source code prior to compilation. The compiler never sees the directives, it only sees the modified source code.

Preprocessor directives can be used to insert the contents of one file into another (#include), define or undefine a macro (#define, #undef), provide conditional compilation (#if, #ifdef, #ifndef, #else, #endif) or provide some implementation-defined operation (#pragma).

When the preprocessor acts upon a directive, the directive is not included in the modified file. Where a directive defines a macro, all occurrences of the macro name within the source code are expanded according to the definition. Given that the compiler never sees that definition, this can lead to some obscure error messages where macro expansion results in a compile-time error.

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

In C plus plus what sign do all preprocessor directives start with?

all preprocessor directives start with #(hash) symbol in both c & c++


What is directives in c?

It's either the preprocessor instructions (#include #define etc), or the pragmas.


Why you need C programming?

C- Programing is basically a programing language of a computer. It helps to create software programing language which is usefull in creating softwares & data base programes. C programing language is the first & basic programing language. Other programing languages are:- C, C++ & C# (latest).


What do you mean by c?

c is a programing language


What are the functions of a c processor?

The preprocessor handles directives for source file inclusion (#include), macro definitions (#define), and conditional inclusion (#if).


What are the various preprocessor directives available in c?

Some of them are: #include #define #if, #else, endif, #elif, #ifdef, #ifndef #line #pragma


Is c an object oriented programing language?

C language is not a program, and it isn't an object-oriented language either.


What are the examples of programing language?

c, c++, java, prolog, fortran, basic, ...


What is preprocessor derective in C language?

#if, #define, #include just to name a few


Why c language is called c language?

C is descendent from another programing language called B which was at that time when 'C' was invented. That's why it derived its name as 'C' successive to 'B'.


How do you perform programs on c programing language?

Using IDE environment


What is the best programing language?

C is best. But java is widely used and relatively easier language