What is the difference between macros and inline functions?

Answer Posted / kiran kumar yakkala

Macro- does not involve in compilation if there is any
logical error also just replaces the code
inline- look like function, but control doesn't goes to
fucntion and execute, it simply replaces the code like
macro but involves in compilation.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why c language is called c?

740


Can we add pointers together?

814


List some of the dynamic data structures in C?

1000


What are the 5 types of inheritance in c ++?

755


Why main is not a keyword in c?

894


If null and 0 are equivalent as null pointer constants, which should I use?

806


What are the differences between Structures and Arrays?

844


the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

1012


Explain how to reverse singly link list.

826


we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?

1027


using for loop sum 2 number of any 4 digit number in c language

1992


What is static and volatile in c?

979


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

898


What are c header files?

775


What does %p mean?

819