What is the difference between macros and inline functions?
Answer Posted / rahul sharma
Macro is a must do thing whearas inline is a hint to the compiler. he may choose not to inline if the function seems complex (it uses recursion or many loops)
Macro can have side effects e.g. the typical
SQUARE(++i); problem
but these problem are not there in inline functions
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can you return null in c?
Ow can I insert or delete a line (or record) in the middle of a file?
Can we assign string to char pointer?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
List some of the dynamic data structures in C?
What is operator promotion?
Why is c known as a mother language?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
Explain is it valid to address one element beyond the end of an array?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
What is #include stdio h and #include conio h?
What's the difference between constant char *p and char * constant p?
Is c still used?
write a program to copy the string using switch case?
What is a pointer value and address in c?