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

What is the difference between null pointer and wild pointer?

0 Answers  


What are the differences between Structures and Arrays?

0 Answers   TCS,


What is header file definition?

0 Answers  


When is an interface "good"?

1 Answers  


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

0 Answers  






Develop a program that computes the new price of an item. The program should receive a character variable colour and a double precision floating-point variable price from the user. Discount rate is determined based on the colour of the discount sticker, as shown in the following table. An error message should be printed if an invalid colour has been entered

1 Answers  


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

0 Answers   Amazon,


Explain bitwise shift operators?

0 Answers  


write a program to remove occurrences the word from entered text?

1 Answers  


why 'c' is called middle level language.

2 Answers  


What is formal argument?

0 Answers  


Explain logical errors? Compare with syntax errors.

0 Answers  


Categories