Question

1) What is the purpose of Macros? In your opinion, do you believe a Macro function...

1) What is the purpose of Macros? In your opinion, do you believe a Macro function has any weaknesses?

Homework Answers

Answer #1

In general, Macros play an imperative role in defining a constant which is repeatedly used in a program. Consider the code snippet:

#define PI 3.14
We have defined value of PI=3.14 and wherever we use PI it will get replaced with 3.14.

Macros can be used to accept parameters as well. If we need same lines of code to be used repetitively, macros come in handy.

The weakness of macros are:

i) They are very difficult to bug

ii) No type checking occurs

iii) Increases program size for execution

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
What was your opinion on vultures? How do you feel about vultures now? Do you believe...
What was your opinion on vultures? How do you feel about vultures now? Do you believe it is important to launch conservation programs for these animals? Why?
Explain the organization of drug courts and their stated purpose. Do you believe this is effective?...
Explain the organization of drug courts and their stated purpose. Do you believe this is effective? Why or why not? Explain your answers.
your own opinion you can use to answer -What do CRISPR and Cas stand for? -What...
your own opinion you can use to answer -What do CRISPR and Cas stand for? -What is the function of CRISPRs and Cas?
what is the strengths and weaknesses of bugeting forecasting system? Do you believe the weaknesses can...
what is the strengths and weaknesses of bugeting forecasting system? Do you believe the weaknesses can ever be overcome? If so how? If not, why not.
Do you believe labor unions currently serve a purpose in our economy or is there no...
Do you believe labor unions currently serve a purpose in our economy or is there no longer a need for them?
what is the strengths and weaknesses of demand planning forecasting system? Do you believe the weaknesses...
what is the strengths and weaknesses of demand planning forecasting system? Do you believe the weaknesses can ever be overcome? If so how? If not, why not. The issues could be but not limited to management, corporate culture, or the nature of what is being forecast.
What do you believe was the purpose of the $1.5 billion senior secured revolving loan facility,...
What do you believe was the purpose of the $1.5 billion senior secured revolving loan facility, and the $2.1 billion second lien bridge loan facility as part of the deal financing package? How will the investors be able to recover the 20% purchase price premium?
what is your opinion about Twixters? Do they exist? Do you know one? Are you one
what is your opinion about Twixters? Do they exist? Do you know one? Are you one
What do you believe to be the most likely outcome for the ACA as of December,...
What do you believe to be the most likely outcome for the ACA as of December, 2020 (i.e., what will be its status at that time)? Explain clearly WHY you believe this will be the case. (NOTE: Of course, there is no “correct” answer for this question; however, as a healthcare professional, you will frequently be asked for your opinion on important issues such as this one, and you need to be able to offer an informed and well-reasoned response
What is your opinion of the Affordable Care Act? What do you think will be the...
What is your opinion of the Affordable Care Act? What do you think will be the consequences of the repeal of mandatory insurance?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT