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

Find errors (1) m = ++a*5; (2) a = b ++ -c*2; (3)y = sqrt (1000);

5 Answers  


where can function pointers be used?

2 Answers  


will u please send me the placement papers to my mail???????????????????

0 Answers  


Give me the code of in-order recursive and non-recursive.

0 Answers   DELL,


An array name contains base address of the array. Can we change the base address of the array?

4 Answers   NMIMS, Wipro,






Explain how do I determine whether a character is numeric, alphabetic, and so on?

0 Answers  


How do I read the arrow keys? What about function keys?

0 Answers  


Can math operations be performed on a void pointer?

0 Answers  


Do array subscripts always start with zero?

0 Answers  


How can variables be characterized?

0 Answers  


how to write a cprogram yo get output in the form * *** ***** ******* ********* ******* ***** *** *

3 Answers  


What is pointers in c?

0 Answers  


Categories