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
How can I make it pause before closing the program output window?
Can a local variable be volatile in c?
What is action and transformation in spark?
What are 'near' and 'far' pointers?
Why c is called object oriented language?
What does %d do?
Is register a keyword in c?
What does %c mean in c?
Explain argument and its types.
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
What is a structure member in c?
Why doesnt this code work?
Tell me is null always defined as 0(zero)?