Question 1 :What is the difference between macros and inline functions?
Ans :
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 function and execute, it simply replaces the code like macro but involves in compilation.
Question 2:Difference between structure and union?
Ans :
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 function and execute, it simply replaces the code like macro but involves in compilation.
Question 2:Difference between structure and union?