Answer Posted / rohit
macro is a subroutine.
A macro is used to define a short functional code where it
can be inserted in a number of places(where the functional
code is compiled more than once)
Need of Macro: Some times there is a need to call the set
of codedata again and agian in the program.In that
particular situation we can use macros.
Use of Macro can increase the efficiency of the program and
also decrease the length of the code.
Macro can be defined by using Define statement
Example:
int a[2000];
If you use lot of places 2000 in your code
some time you want to change the 2000 to 500
then you must replace 2000 with by 500. this changes are
repeatedly by u....
In this case if you define macro
Just you change the macro it will effect over all program..
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write a program to swap two numbers without using a temporary variable?
what is different between auto and local static? why should we use local static?
Do variables need to be initialized?
Which is the memory area not included in C program? give the reason
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
how to find binary of number?
Apart from dennis ritchie who the other person who contributed in design of c language.
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
why we wont use '&' sing in aceesing the string using scanf
How do you determine the length of a string value that was stored in a variable?
Write a Program to find whether the given number or string is palindrome.
What is wild pointer in c with example?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
How do you use a pointer to a function?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.