answersLogoWhite

0


Best Answer

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

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is preprocessor derective in C language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

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 the difference between preprocessor directives and header files?

Preprocessor: All the preprocessor commands written in a high level language are processed by the preprocessor before compiler takes over.Example: "#define MAX_ROWS 10"Preprocessor finds all the places and replaces MAX_ROWS with 10 in the files of the project.Compiler: This software, converts the code written in high-level language into object file. Compiler converts all the files of a given project at once.


Is macro a recursive function?

If you're asking if the c preprocessor supports recursive macros, the answer is no. The preprocessor is single-pass and since the "function" must be defined before it can be referenced, it can not be recursive.


How is the newline formed in c plus plus preprocessor?

\x0a in unix, \x0d\x0a in Win/Dos


What are preprocessor directives in c programing language?

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.

Related questions

How you can use pragma in c language?

a preprocessor directive that is not an specified ISO standard that controls actions of complier and linker


What according to James Baldwin are the functions of language?

Performative Function - the thing and perform what the person say


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 Hypertext Preprocessor related too?

Hypertext Preprocessor is PHP, it is a server side web programming language.


What is the full form of php language?

PreProcessor Hyptertext


What is done during compilation?

The code of source file stored on the disk must be translated in to machine language. this is the job of the compiler. The c compiler is actually two separate programs :"PREPROCESSOR",TRANSLATOR.The preprocessor reads the source code and prepares it for translator.while preparing the code , it scans for specials instructions known as preprocessor commands. These commands tell the preprocessor to look for special code libraries, make substitutions in the code, and in other ways prepare the code for translation in to machine language .the result of possessing is called translation unit .after the preprocessor has prepared the code for compilation, the translator does the actual work converting the program in to machine language . the translator reads the translation unit and writes the resulting "object module".an object module is the code in machine language. even though the output of the compiler is machine code, it is not yet ready to run : that is not yet executable because it does not have the required c and other functions included


What is the difference between preprocessor directives and header files?

Preprocessor: All the preprocessor commands written in a high level language are processed by the preprocessor before compiler takes over.Example: "#define MAX_ROWS 10"Preprocessor finds all the places and replaces MAX_ROWS with 10 in the files of the project.Compiler: This software, converts the code written in high-level language into object file. Compiler converts all the files of a given project at once.


Is C plus plus preprocessor software?

Sometimes, it is. Some implementations compile C++ code into C code, and then compile the C code.


Is macro a recursive function?

If you're asking if the c preprocessor supports recursive macros, the answer is no. The preprocessor is single-pass and since the "function" must be defined before it can be referenced, it can not be recursive.


What is the difference between the header file and the preprocessor directive in programming language cpp?

pata nhn


What is directives in c?

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


What is a macro and where is it used?

A macro is used in the C programming language, and it's something that the C preprocessor reads before reading the actual code. Here's an example: #define foo(x) x = 5; Now, if you type this: foo(myVariable), then myVariable would be five.