What are the advantages of Macro over function?



What are the advantages of Macro over function?..

Answer / hrpynux@gmail.com

When writing macros for functions, they saves a lot of time that is spent by the compiler for invoking / calling the functions. Hence, The advantage of a macro over an actual function, is speed. No time is taken up in passing control to a new function, because control never leaves the home function.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Interview Questions

hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

0 Answers   HCL,


what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??

5 Answers  


What is a file descriptor in c?

0 Answers  


program to find middle element of linklist?

1 Answers   Huawei,


Write a program to print all the prime numbers with in the given range

8 Answers   ABC, College School Exams Tests, TCS,






How can you determine the maximum value that a numeric variable can hold?

0 Answers  


Why do we need a structure?

0 Answers  


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

0 Answers   MNC,


Explain what is the general form of a c program?

0 Answers  


How can I swap two values without using a temporary?

0 Answers  


How would you obtain the current time and difference between two times?

0 Answers   TISL,


How can I automatically locate a programs configuration files in the same directory as the executable?

0 Answers  


Categories