How should a programmer decide whether to use a macro or a
subroutine to accomplish a given logical function



How should a programmer decide whether to use a macro or a subroutine to accomplish a given logica..

Answer / sumegha sharma

if a programmer wants to call a function by call by
reference method then he should use macro or if by call by
value method then he should use subroutine.

Is This Answer Correct ?    8 Yes 11 No

Post New Answer

More Programming Languages AllOther Interview Questions

what is the difference between a namespace and assembly ?

4 Answers   Innominds, Polaris,


Corillian's product is a "Component Container." Name at least 3 component

1 Answers  


Write a program to swap the content of two variables without using a third variable.

0 Answers   Zensar,


Outline the two important features of a terminating recursion. Any ideas?

0 Answers  


Can i please VHDL code for D-Latch with clear input ?? (HINT: Set up a “Process” with appropriate sensitivity list to get the desired D-Latch with Clr working.) Inputs and Outputs: entity Lab4b is Port ( Clr, Clk, D : in STD_LOGIC; Q : out STD_LOGIC); end Lab4b;

0 Answers  






In mainframe SDSF, Can we copy the list of jobs currently executing in SDSF in to a seperate DATASET...?

0 Answers   DST Global Solutions,


What is the difference between CLEAR & RESET and OPEN & CLOSE OPCOEDS(USING RPG/400).wheare we can use this?can any body tell me in real time senario with example please?

0 Answers  


what is dot net framework

0 Answers   NIC,


What is the language used for Artificial Intelligence?

1 Answers  


when we use mantis? how learn mantis?

0 Answers  


Any real time example of O2C process from taking order till creating invoice.

0 Answers  


how do i create my own exception class which will restrict IO exception?

0 Answers  


Categories