C Functions Question:

Download Job Interview Questions and Answers PDF

Explain the advantages of using macro in C Language?

C Functions Interview Question
C Functions Interview Question

Answer:

In modular programming, using functions is advisable when a certain code is repeated several times in a program. However, everytime a function is called the control gets transferred to that function and then back to the calling function. This consumes a lot of execution time. One way to save this time is by using macros. Macros substitute a function call by the definition of that function. This saves execution time to a great extent.

Download C Functions Interview Questions And Answers PDF

Previous QuestionNext Question
What is #pragma statements?Do you know what are bitwise shift operators in C Programming?