A macro instruction is a collection of programming instructions that have been condensed into a single instruction. When a macro is utilised, it expands from its compressed form into the full set of instructions.
A macro is a chunk of programme code that is replaced by the macro's value. The #define directive is used to define a macro. When the compiler encounters a macro name, it substitutes the name with the macro's definition.
The compiler preserves no type information for the defined values when defining macros for magic numbers. This can result in compilation warnings (and faults) and make debugging the code more difficult. When macros are used instead of functions, programmers expect them to behave like functions, which they do not.
In C, macros are widely used to define tiny code snippets. If the macro has parameters, they are swapped into the macro body during expansion, making it possible for a C macro to resemble a C function.
The term "macro" refers to something that covers a huge area or is large in size. Macroeconomics, for example, is the study of an economy's fundamental driving factors. A macro shot of an ant, for example, is an example of macro photography.
Learner's Ratings
4.4
Overall Rating
69%
18%
5%
4%
4%
Reviews
P
PATAN MASTHAN
5
sir need c notes it is very useful us to read after listening class so i request u do please provide notes......................masthimasthan786@gmail.com this is my mail
L
Lalita
5
this courses are very helpful. thank you so much.
B
Biwek Gorai
5
I like this course , thank you for your free courses, your free course many people for helpful.
S
SHAYAQ SHAFI
5
sir please provide pdf
Y
Yash Lohiya
5
I am really thanks to learnvern because they give best lectures without any cost sir please. I am really requesting please give us pdf
S
Sonu Kumar
5
teaching is really very awesome.
If assignment would be in the pdf along with lecture. then it would be more benificial.
A
ashish patil
5
Teaching is very best everything is understanding thank you so much 🙏
Share a personalized message with your friends.