What is macro?

Answers were Sorted based on User's Feedback



What is macro?..

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

What is macro?..

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

What is macro?..

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

What is macro?..

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

What is macro?..

Answer / raj

macro is #define number

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

Why c is called a mid level programming language?

0 Answers  


what are the stages of compilation

1 Answers   Bosch,


write a program that will read the temperature in Celsius and convert that into Fahrenheit.

1 Answers  


What is file in c preprocessor?

0 Answers  


why java is called as a purely oops language.

3 Answers   TVS,






will u please send me the placement papers to my mail???????????????????

0 Answers  


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?

0 Answers  


What is the explanation for cyclic nature of data types in c?

0 Answers  


how to write a bubble sort program without using temporary variable?

1 Answers   Aricent,


Write a code to remove duplicates in a string.

0 Answers   Expedia,


main() { int arr[5]={23,67}; printf("%d%d%d",arr[2],arr[3],arr[4]); }

9 Answers   TCS,


write a C and C++ programme to implement the A,bubble sort B,quick sort C,insertion sort D,sequential search E,binary search

1 Answers   ADP, TCS,


Categories