ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
   
 
Categories  >>  Software  >>  ERP CRM  >>  SAP  >>  ABAP
 
 


 

 
 Basis interview questions  Basis Interview Questions
 ABAP interview questions  ABAP Interview Questions
 SAPScript interview questions  SAPScript Interview Questions
 SD interview questions  SD Interview Questions
 MM interview questions  MM Interview Questions
 QM interview questions  QM Interview Questions
 PP interview questions  PP Interview Questions
 PM interview questions  PM Interview Questions
 PS interview questions  PS Interview Questions
 FI CO interview questions  FI CO Interview Questions
 HR interview questions  HR Interview Questions
 SAP CRM interview questions  SAP CRM Interview Questions
 SRM interview questions  SRM Interview Questions
 APO interview questions  APO Interview Questions
 Business Warehouse interview questions  Business Warehouse Interview Questions
 Business Workflow interview questions  Business Workflow Interview Questions
 SAP Security interview questions  SAP Security Interview Questions
 SAP Interfaces interview questions  SAP Interfaces Interview Questions
 Netweaver interview questions  Netweaver Interview Questions
 SAP ALE IDocs interview questions  SAP ALE IDocs Interview Questions
 SAP B1 interview questions  SAP B1 Interview Questions
 SAP AllOther interview questions  SAP AllOther Interview Questions
Question
Difference Between Call By Value and Call By Reference?
 Question Submitted By :: Naren
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Difference Between Call By Value and Call By Reference?
Answer
# 1
Call By Value:
Creates a new memory loaction for use within the
subroutine.The memory is freed once it leaves the
subroutine.Changes made to the variable are not affected
outside the subroutine.
Call By Reference:
Passes a pointer to the memory location.Changes made to the
variable within the subroutine affects the variable outside
the subroutine.
 
Is This Answer Correct ?    364 Yes 76 No
Kruthicse
 
  Re: Difference Between Call By Value and Call By Reference?
Answer
# 2
IN CALL BY VALUE, BOTH THE ACTUAL AND FORMAL PARAMETERS
WILL BE CREATED IN DIFFERENT MEMORY LOCATIONS WHEREAS IF
THEY ARE CALLED BY REFERENCE BOTH WILL BE CREATED AT THE
SAME LOCATION.
 
Is This Answer Correct ?    241 Yes 84 No
Arun Prasad
 
 
 
  Re: Difference Between Call By Value and Call By Reference?
Answer
# 3
in call by value method,a compiler get a copy of the
variable and thus changes made in the value in function
will not reflected back to the called function.but in call
by reference method,the compiler didn't get any copy ,but
actually it works on the original copy and thus changes
will be reflected back
 
Is This Answer Correct ?    162 Yes 40 No
Ashish Awasthi
 
  Re: Difference Between Call By Value and Call By Reference?
Answer
# 4
call by value :
call by value means programmer send some value coping from
one function to another.At the time of function calling a
programmer can send a copy of variable of value.

call by referance :
it means sending sending the address of variable to the
called function means a user can send the address of variable.
 
Is This Answer Correct ?    108 Yes 44 No
Vinay Kumar Gupta
 
  Re: Difference Between Call By Value and Call By Reference?
Answer
# 5
simplest possible method of passing the parameters the
actual parameter are evaluated and their r values are passed
to the subroutine in location determined by the language
implimentation
 
Is This Answer Correct ?    38 Yes 49 No
Amit Dhamapurkar
 
  Re: Difference Between Call By Value and Call By Reference?
Answer
# 6
call by value :
The copy of the argument is passed. e,g., if x and y are arguments and their corresponding values are say 100 and 200.
c=max(x,y);
max(inta,intb)

call by referance :
it is sending the address of variables to the called function.
 
Is This Answer Correct ?    54 Yes 29 No
Soumya.tavildar
 
  Re: Difference Between Call By Value and Call By Reference?
Answer
# 7
IN CALL BY VALUE, BOTH THE ACTUAL AND FORMAL PARAMETERS
WILL BE CREATED IN DIFFERENT MEMORY LOCATIONS WHEREAS IF
THEY ARE CALLED BY REFERENCE BOTH WILL BE CREATED AT THE
SAME LOCATION ANDit is sending the address of variables to the called function .
 
Is This Answer Correct ?    44 Yes 15 No
Dhiren
 
  Re: Difference Between Call By Value and Call By Reference?
Answer
# 8
call by value :
call by value means programmer send some value coping from
one function to another.At the time of function calling a
programmer can send a copy of variable of value.

call by referance :
it means sending sending the address of variable to the
called function means a user can send the address of
variable.
 
Is This Answer Correct ?    67 Yes 16 No
Maqbul
 
  Re: Difference Between Call By Value and Call By Reference?
Answer
# 9
Call by value method:
passing the value of variable to the function.
void main()
{
int x=10,y=20;
printf("%d%d',x,y);
swap(x,y);
}
void swap(int a,int b)
{
int c;
c=a;//changes here do not affect in values
a=b;//of x and y in main function..
b=c;
}

call by reference method:
passing the address of variable to the function.
swap(&a,&b)
&c=&a;
&a=&b;
&b=&c;
changes made in subfunction causes changes in address of
variables n thus in main () also..
 
Is This Answer Correct ?    82 Yes 14 No
Shrikant Patil
 
  Re: Difference Between Call By Value and Call By Reference?
Answer
# 10
call by value is a technique whereby the called function
receives value from its calling function, stores this value
in its local arguments andd return a result.

call by reference is a technique whereby a calling gives
access of its local variables to the called function.
 
Is This Answer Correct ?    58 Yes 15 No
Shikesho Padjowike
 

 
 
 
Other ABAP Interview Questions
 
  Question Asked @ Answers
 
Can I Get the field name's of mara table.  3
Describe data classes.  1
HOW DO WE JOIN TWO INTERNAL TABLES USING READT STATEMENT?? Atos-Origin1
what command will use in logical database for retrieve the data (select OR retrieve OR GET)  2
Can Top-of-page trigger with VLINE.? Satyam4
What is the advantage of structures? How do you use them in the ABAP programs?  4
what is the difference between a table and template in Smartforms? Wipro3
How to call A report from other report widout using include program..?? IBM3
A Program calls a Function module. what happens to the ABAP memory allocation used by the functional module when the functional module is completed?  2
How to transfer the objects? Have you transferred any objects? Enteg-Technologies2
what is the standard program to check the consistency of the partner profiles?  2
What is Internal Table? Atos-Origin14
 
For more ABAP Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com