What is the use of #define preprocessor in c?



What is the use of #define preprocessor in c?..

Answer / Pawan Kumar Yadav

The C preprocessor, denoted by #define, is a part of the C compiler that performs textual replacement before the actual compilation. It allows you to create macros, shortcut names for frequently used code sequences, and conditional compilation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Taking an example,differentiate b/w loader and linker ?

1 Answers  


There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.

1 Answers   HCL, iGate,


int main(){ float f=8.0; if(f==8.0) printf("good"); else printf("bad"); } what is the answere and explain it?

3 Answers  


Differentiate between full, complete & perfect binary trees.

1 Answers  


How to declare pointer variables?

1 Answers  


What is sizeof int?

1 Answers  


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

1 Answers  


What is the use of pragma in embedded c?

1 Answers  


With the help of using classes, write a program to add two numbers.

1 Answers   TCS,


What does do in c?

1 Answers  


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

1 Answers  


write a program to insert an element at the specified position in the given array in c language

5 Answers   Appin, IBM,


Categories