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 (808)
 ABAP interview questions  ABAP Interview Questions (2421)
 SAPScript interview questions  SAPScript Interview Questions (127)
 SD interview questions  SD Interview Questions (1934)
 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 (1638)
 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 (16)
 Business Warehouse interview questions  Business Warehouse Interview Questions (621)
 Business Workflow interview questions  Business Workflow Interview Questions (9)
 SAP Security interview questions  SAP Security Interview Questions (329)
 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 (89)
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 ?    396 Yes 86 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 ?    258 Yes 90 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 ?    175 Yes 42 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 ?    119 Yes 45 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 ?    42 Yes 54 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 ?    57 Yes 32 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 ?    49 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 ?    76 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 ?    91 Yes 15 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 ?    61 Yes 17 No
Shikesho Padjowike
 

 
 
 
Other ABAP Interview Questions
 
  Question Asked @ Answers
 
in what application server the business logic is developed/deployed? Zydus 2
Modes in Call Transaction? FutureSoft 4
If u r working with call transaction method .any problem occurs error records r stored in BDCMSGCOLL structure.How do u find that an error has occured at a particular point,how can u handle to rectify and process it successfully? If a file has 10000 records where 3 records doent having right format,how do u tackle with this issue either by using call transaction or session method to transfer data perfectly into database table?tell me the steps how to procede? Deloitte 1
what is meant by maintenance allowed(if it can provide authorization, what is authorization) Satyam 2
What are AUTHORITY OBJECTS ?   2
In data element how many domains were defined? EDS 1
what is meant stacked list?   1
what is the Difference between Scripts and Smart Forms?   3
What is the use of event AT SELECTION-SCREEN ON FIELD? CSC 6
1.what aer the text modules. 2.what is function module in report. 3.what is the land scape in u r projwct. Cap-Gemini 4
what is the variable to be used in sap scripts to find the total number of pages of the print job? Accenture 1
I wrote one script program,Now i want to transfer this program from development to production system so that output is displayed correct in production.please give me the steps.In development showing correct output but whereas in production somewhat difference.So what is the problem?   2
 
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