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 |
Why c is called a mid level programming language?
what are the stages of compilation
write a program that will read the temperature in Celsius and convert that into Fahrenheit.
What is file in c preprocessor?
why java is called as a purely oops language.
will u please send me the placement papers to my mail???????????????????
24.what is a void pointer? 25.why arithmetic operation can’t be performed on a void pointer? 26.differentiate between const char *a; char *const a; and char const *a; 27.compare array with pointer? 28.what is a NULL pointer? 29.what does ‘segmentation violation’ mean? 30.what does ‘Bus Error’ mean? 31.Define function pointers? 32.How do you initialize function pointers? Give an example? 33.where can function pointers be used?
What is the explanation for cyclic nature of data types in c?
how to write a bubble sort program without using temporary variable?
Write a code to remove duplicates in a string.
main() { int arr[5]={23,67}; printf("%d%d%d",arr[2],arr[3],arr[4]); }
write a C and C++ programme to implement the A,bubble sort B,quick sort C,insertion sort D,sequential search E,binary search