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                      
Google
   
 
Categories >> Software >> ERP CRM >> SAP >> ABAP
 
 


 

 
 Basis interview questions  Basis Interview Questions (812)
 ABAP interview questions  ABAP Interview Questions (2422)
 SAPScript interview questions  SAPScript Interview Questions (127)
 SD interview questions  SD Interview Questions (1944)
 MM interview questions  MM Interview Questions (348)
 QM interview questions  QM Interview Questions (8)
 PP interview questions  PP Interview Questions (133)
 PM interview questions  PM Interview Questions (21)
 PS interview questions  PS Interview Questions (20)
 FI CO interview questions  FI CO Interview Questions (1645)
 HR interview questions  HR Interview Questions (434)
 SAP CRM interview questions  SAP CRM Interview Questions (261)
 SRM interview questions  SRM Interview Questions (11)
 APO interview questions  APO Interview Questions (18)
 Business Warehouse interview questions  Business Warehouse Interview Questions (622)
 Business Workflow interview questions  Business Workflow Interview Questions (9)
 SAP Security interview questions  SAP Security Interview Questions (332)
 SAP Interfaces interview questions  SAP Interfaces Interview Questions (4)
 Netweaver interview questions  Netweaver Interview Questions (144)
 SAP ALE IDocs interview questions  SAP ALE IDocs Interview Questions (47)
 SAP B1 interview questions  SAP B1 Interview Questions (57)
 SAP AllOther interview questions  SAP AllOther Interview Questions (90)
Question
Difference Between Call By Value and Call By Reference?
 Question Submitted By :: ABAP
I also faced this Question!!     Answer Posted By  
 
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 ?    418 Yes 90 No
Kruthicse
 
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 ?    268 Yes 94 No
Arun Prasad
 
 
 
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 ?    185 Yes 45 No
Ashish Awasthi
 
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 ?    127 Yes 48 No
Vinay Kumar Gupta
 
Answer
# 5
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 ?    93 Yes 16 No
Shrikant Patil
 
Answer
# 6
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 ?    77 Yes 17 No
Maqbul
 
Answer
# 7
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 ?    64 Yes 17 No
Shikesho Padjowike
 
Answer
# 8
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 ?    50 Yes 17 No
Dhiren
 
Answer
# 9
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 ?    60 Yes 33 No
Soumya.tavildar
 
Answer
# 10
Call By Value :
In call By Value it create different memory for local
variable and actual called Variable. so changes does not
affect to the actual variable.

Call By Reference:
In call By Reference Compiler create same memory location
for the local variable and actual called variable so changes
affect to the actual variable and modify the value of actual
called Variable.
 
Is This Answer Correct ?    7 Yes 1 No
Sadikhasan
 

 
 
 
Other ABAP Interview Questions
 
  Question Asked @ Answers
 
what is meaning of idoc monitoring? HCL 2
How to search a Internal Table Fields? HCL 2
What is the testing tool in ale........ Accenture 2
What is the difference between data base objects and runtime objects?   1
How do you call a report from a transaction ?   3
difference between cluster and pooled tables Amplify-Mindware 6
Some one is running a program in Foreground which has to be run in Back ground. How you are going to instruct to do in Back ground?   1
how to run bdc program in background? HCL 2
To avoid screen resolution problem while recording, Accenture 1
what is the z-transaction?? what's the use of it?? TCS 2
how to upload logo in the smart forms Wipro 2
what is the transaction code for asset master transaction IBM 1
 
For more ABAP Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com