What are the uses of pre-processor directives?

Answers were Sorted based on User's Feedback



What are the uses of pre-processor directives?..

Answer / raghav_jk

Preprocessor Directive are
#include
#if
#else
#define
#ifdef
#ifndef
#endif

the command starts with # are called preprocessor directives

Uses
File Inclussion
Conditional Compilation
Macro Expansion

Is This Answer Correct ?    10 Yes 0 No

What are the uses of pre-processor directives?..

Answer / vl

The pre processor directives are the code line which are
replaced by the actuall value (header file and Macro
replacements) before compiler start the syntax checks.

Is This Answer Correct ?    9 Yes 2 No

Post New Answer

More C Interview Questions

Explain what is the difference between #include and #include 'file' ?

0 Answers  


Compare interpreters and compilers.

0 Answers  


what does data structure mean?

8 Answers  


What are local and global variables?

3 Answers  


How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?

2 Answers  






How to write a code for random pick from 1-1000 numbers? The output should contain the 10 numbers from the range 1-1000 which should pick randomly, ie ,for each time we run the code we should get different outputs.

12 Answers   NetApp,


10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning

5 Answers   Accenture,


Which one would you prefer - a macro or a function?

0 Answers  


Can a function argument have default value?

0 Answers   Genpact,


Difference between Class and Struct.

13 Answers   Ericsson, Motorola, Wipro,


Write a program to swap two numbers without using the third variable?

0 Answers  


how to get the starting address of file stored in harddisk through 'C'program.

2 Answers   Siemens,


Categories