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 the difference between macro and subroutine?

Answer Posted / nandy2

1. In a program it is often necessary to repeat the block of code many times.In this situation a macro facility may be useful . Macro instruction are singal line abbreviations for a block of instruction.
We can say that the function which is used in c,c++ and java is macro.
On the other hand subroutine is called whenever necessary i.e, the control of execution is transferred to the subroutine appears only once in the complete progaram.
We can say that the Header files attached in c and c++ and libraries are are subroutine.
2.Macro not utilize the service of stack.But the subroutine utilize the service of stack.
3. Subroutine requires less memory space for execution than that using macro.
4.Macro requires less time for execution than that using subroutine.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is example class

1291


suppose i want to print sap script output in different printers at a time what are the settings i'll have to make?

2254


what is the exact code that shoud be implimented in sap note

2456


What are types of select statements?

1020


In SAP Script,How to display a single field(like matnr)at the right end of the form.

2401


Explain the table, which contain the details of all the name of the programs and forms?

930


What is is a match code? : abap data dictionary

1208


What is “call mode”?

954


What is dynpro? what are its components ?

1058


What is a subroutine?

1017


Mention some important events in abap programming.

1009


Explain what is the significance of hide?

1030


Explain the components of selection table?

1077


What are the data types of the external layer? : abap data dictionary

1335


How to call other programs?

1031