What is the use of define in c?



What is the use of define in c?..

Answer / Pravin Kumar

In C programming, '#define' is a preprocessor command used to replace a sequence of characters (macro) by another sequence of characters or numerical value before compilation. It can be used for creating abbreviations or symbols with fixed values.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Linked lists -- can you tell me how to check whether a linked list is circular?

1 Answers  


What is the relationship between pointers and data structure?

0 Answers  


do ne body have any idea about the salary for the we r going to have interview. yup .. u got it right ..i m talking abt NIC.

1 Answers  


Explain main function in c?

1 Answers  


wat is the output int main() { char s1[]="Hello"; char s2[]="Hello"; if(s1==s2) printf("Same"); else printf("Diff"); }

3 Answers  


What are the 4 types of functions?

1 Answers  


what is object oriental programing?

1 Answers  


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

1 Answers   Wilco,


What is equivalent to ++i+++j?

1 Answers  


What does 1f stand for?

1 Answers  


HOW DO YOU HANDLE EXCEPTIONS IN C?

2 Answers   AppLabs,


Explain the use of 'auto' keyword

1 Answers  


Categories