What is the Difference between Macro and ordinary
definition?

Answer Posted / himanshu goel

macro definitions can be used for conditional compilation
whereas ordinary cannot

Is This Answer Correct ?    8 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between full, complete & perfect binary trees.

661


State the difference between realloc and free.

618


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

554


What is use of null pointer in c?

562


How can I make sure that my program is the only one accessing a file?

665






Difference between macros and inline functions? Can a function be forced as inline?

697


Explain a pre-processor and its advantages.

610


How do we declare variables in c?

558


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

601


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1284


What is an arrays?

643


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

590


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

2564


What is character set?

675


What are linker error?

606