What is define directive?



What is define directive?..

Answer / Monika Sirohi

"The "define" directive in C creates a macro by replacing the #define directive and its arguments with the replacement text whenever it appears in the source code. Macros can simplify complex expressions, reduce typing effort, and increase performance but should be used cautiously as they lack type checking."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

find largest of 3 no

8 Answers  


Explain the use of 'auto' keyword

1 Answers  


how to swap two integers 1 and 32767 without using third variable

11 Answers   Microsoft, TCS,


What is s or c?

1 Answers  


What are type modifiers in c?

1 Answers  


Which is better pointer or array?

1 Answers  


How to write in a function declaration and in function call in which the function has 'n' number of varible or arguments?

2 Answers  


what is software?

7 Answers   Wipro,


What is the difference between formatted&unformatted i/o functions?

1 Answers  


DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?

2 Answers   Wipro,


What language is windows 1.0 written?

1 Answers  


What is the advantage of c?

1 Answers  


Categories