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 |
logic for x=y^n
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
Can you assign a different address to an array tag?
Explain about block scope in c?
c program to add and delete an element from circular queue using array
What is keyword in c?
what is the diference between pointer to the function and function to the pointer?
Explain the difference between structs and unions in c?
Add 2 64 bit numbers on a 32 bit machine
3 Answers EMC, Hyderabad Central University, NetApp,
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
How are 16- and 32-bit numbers stored?
Why is C called a middle-level language?