What is the Difference between Macro and ordinary
definition?
Answer Posted / d g patel
1. Macro takes parameters where as ordinary definition does
not.
2. Based on the parameter values to macro it can result in
different value at run time. Ordinary defination value
remains same at all place at run time.
3. Macro can be used for conditional operations where as
definition can not.
4. Using macro one can achieve inline functionality in C
ie. macro can be a function performing simple operations.
This is not possible using definitions.
| Is This Answer Correct ? | 46 Yes | 9 No |
Post New Answer View All Answers
Explain what are linked list?
What does calloc stand for?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
Explain low-order bytes.
When can you use a pointer with a function?
What is the use of clrscr?
Describe static function with its usage?
What is methods in c?
What is #include stdlib h?
Is there a way to compare two structure variables?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
what do u mean by Direct access files? then can u explain about Direct Access Files?
Does c have function or method?
What are the c keywords?