Difference between macro and subroutine

Write down the difference between macro and subroutine.

E

Expert

Verified

  • Macros can only be employed in the program are stated in and only after the definition are expanded at generation or compilation.
  • Subroutines (or FORM) can be called from both the program are depicted in and other programs.
  • A macro is more or less the abbreviation for some lines of code which are employed more than once or twice.
  • A FORM is the local subroutine (that can be called external).

   Related Questions in Basic Computer Science

©TutorsGlobe All rights reserved 2022-2023.