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

Mention the various databases integrities?

1028


What are the types of subroutines? : abap modularization

1036


What is sapnet?

1452


What is the significance of the screen number ‘0’?

1043


when does a list get sent to the screen on the presentation layer?

1945


How do you display a data in a detail list?

987


Lock objects and what are parameters of ENQUEUE FM?

1778


What are the different modes of processing batch input sessions? : abap bdc

1219


What is the differrences between structure and table in data dictionary in abap? : abap hr

1204


How do you get the number of lines in an internal table? How to use a specific number occurs statement?

957


Can matchcode object contain ids with different update types? : abap data dictionary

1073


What are the techniques involved in using SAP supplied programs? Do you prefer to write your own programs to load master data? Why?

1196


what are the important fields while preparing sales order,inquiry?

2311


did u done enhancement framework?how u implemented?

5531


WHAT ARE THE MANDATORY FIELDS TO BE FILLED FROM TABLES BAPIITEMIN, BAPIPARTNR, BAPIITEMEX, BAPICUCFG, BAPICUINS, BAPICUPRT, AND BAPICUVAL IN BAPI 'BAPI_QUOTATION_CREATEFROMDATA

2539