Why is a macro used in place of a function? ans. It reduces code size. It increases execution time. It increases code size. It reduces execution time.

Question

Why is a macro used in place of a function? ans. It reduces code size. It increases execution time. It increases code size. It reduces execution time.
🧐 Not the exact question you are looking for?Go ask a question

Solution 1

A macro is used in place of a function for several reasons:

  1. It reduces code size: Macros are preprocessed by the preprocessor in C/C++ programming languages. This means that the macro code is expanded at compile time, which can lead to a reduction in the overall size of the code.

  2. It increase Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study prob

Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solv

This problem has been solved

Similar Questions

Why is a macro used in place of a function? ans. It reduces execution time. It increases execution time. It increases code size. It reduces code size.

Why is a macro used in place of a function? It increases code size. It increases execution time. It reduces execution time. It reduces code size.

Why is a macro used in place of a function? ans. It reduces code size. It increases execution time. It increases code size. It reduces execution time.

Why is a macro used in place of a function? ans. It reduces code size. It increases code size. It reduces execution time. It increases execution time.

Awe increases happiness, enhances a sense of belonging, and reduces feelings of time pressure. True False

1/3