Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is macro?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is exit() function?

1027


What are the advantages and disadvantages of pointers?

1074


why wipro wase

2313


What is operator promotion?

1077


What is wild pointer in c with example?

1064


How many parameters should a function have?

1197


What are linked lists in c?

1132


How is a pointer variable declared?

1102


What should malloc() do?

1174


Who is the main contributor in designing the c language after dennis ritchie?

1009


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1991


How does placing some code lines between the comment symbol help in debugging the code?

1006


What is #define?

1120


Explain the concept and use of type void.

1119


How can I prevent another program from modifying part of a file that I am modifying?

1061