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
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
How is a null pointer different from a dangling pointer?
Why do we use pointer to pointer in c?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
Why doesnt long int work?
Is that possible to store 32768 in an int data type variable?
What are called c variables?
Where does the name "C" come from, anyway?
Where define directive used?
What is a stream in c programming?
What is #include stdlib h?
What is c variable?
How can I manipulate individual bits?
Under what circumstances does a name clash occur?
What is putchar() function?