What is macro?
Answers were Sorted based on User's Feedback
Answer / jayasrinivas.donavalli
macro is a subroutine.
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
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / nagendranath.s
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)
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / kesar
Macro is define by user
it locks the lot modifications....
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 |
Answer / 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 |
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
How the C program can be compiled?
How do we select the big element or any other operation from array which is read dynamically. user need to give the elements only no need to mention the size.
what is the most appropriate way to write a multi-statement macro?
FIND THE OUTPUT IF THE INPUT IS 5 5.75 void main() { int i=1; float f=2.25; scanf("%d%f",&i,&f); printf("%d %f",,i,f); } ANSWER IS 5 AND 2.25 WHY?
What are keywords in c with examples?
actually i have 2 years teaching experience as computer faculty but now i am a DBA but when i go for interview many peoples asked me why i left my teaching profession and why i want to come in this field kindly give me the proper answer of this queston
develop algorithms to add polynomials (i) in one variable
what is the difference between structural,object based,object orientd programming languages?
How would you sort a linked list?
What are the standard predefined macros?
How to print India by nested loop? I IN IND INDI INDIA