Interviewer And Interviewee Guide

C Preprocessor Interview Question:

What are the advantages of using macro?

Submitted by: Muhammad
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.
Submitted by: Muhammad

Read Online C Preprocessor Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.