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 (814)
 ABAP interview questions  ABAP Interview Questions (2427)
 SAPScript interview questions  SAPScript Interview Questions (127)
 SD interview questions  SD Interview Questions (1953)
 MM interview questions  MM Interview Questions (352)
 QM interview questions  QM Interview Questions (8)
 PP interview questions  PP Interview Questions (136)
 PM interview questions  PM Interview Questions (21)
 PS interview questions  PS Interview Questions (20)
 FI CO interview questions  FI CO Interview Questions (1658)
 HR interview questions  HR Interview Questions (434)
 SAP CRM interview questions  SAP CRM Interview Questions (262)
 SRM interview questions  SRM Interview Questions (12)
 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 (336)
 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 (48)
 SAP B1 interview questions  SAP B1 Interview Questions (58)
 SAP AllOther interview questions  SAP AllOther Interview Questions (92)
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 ?    432 Yes 94 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 ?    283 Yes 99 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 ?    197 Yes 46 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 ?    134 Yes 50 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 ?    99 Yes 17 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 ?    80 Yes 18 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 ?    68 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 ?    55 Yes 18 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 ?    63 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 ?    13 Yes 3 No
Sadikhasan
 

 
 
 
Other ABAP Interview Questions
 
  Question Asked @ Answers
 
while running bdc for call transaction method, in gui_upload function we use filetype 'ASC' for tab delimited seperated data. like that for csv(comma delimited) data what we have to use as filetype??? ie FILETYPE = ?????   1
can we fetch data , when we write a select query under end - of - selection event. CTS 2
What is the maximum value for Line-Size in the Report? CSC 5
How to print continuous pages in smartform?my requirement is i need to print 3 pages for each customer i.e 2 pages for purchase order forms and 3rd page is terms and condition page.Likewise how can i print 100 customer pages at once continuously? Cap-Gemini 2
Difference Between Protect and EndProtect?   4
how to create a button in selection screen? how to add a gui status in a selection screen? Wipro 2
How you can handle errors in BDC.IN the log file what type of error mostly will be facing in real time TCS 2
we can use internal table with help of user define data types if possible or not   2
Can search help be assigned to more than one table? Can matchcodes be assigned to more than one table? Sony 1
what is the difference between at first & at new statements   1
2-What is the difference between At New and On change Of inside a loop??I want inside a loop difference not basic difference?? IBM 3
how can u hilight perticular row in popwindow in report programming?please any one can tell me? Intelligroup 3
 
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