what is call by value and call by reference ?

Answers were Sorted based on User's Feedback



what is call by value and call by reference ?..

Answer / srinivasa yadav

CALL BY VALUE: THE MEMORY AREA FOR ACTUAL AND FORMAL
PARAMETERS ARE DIFFERENT.
CALL BY REFERENCE: THE MEMORY AREA FOR ACTUAL AND FORMAL
PARAMETERS ARE SAME. SO WHATEVER VALUES HAS CHANGED IN
FORMAL PARAMETERS WILL BE EFFECTED TO ACTUAL PARAMETERS.

Is This Answer Correct ?    24 Yes 2 No

what is call by value and call by reference ?..

Answer / pradeep reddy

call by reference is a defoult if we change farmal
parameters then actual parameters also get changed..
call by value: its user defined if we change farmal
parameters not effected actual parameters...

Is This Answer Correct ?    15 Yes 3 No

what is call by value and call by reference ?..

Answer / raghunathareddy

call by value means intialize the vatriable..cal by ref means
calling the reference....

Is This Answer Correct ?    6 Yes 7 No

Post New Answer

More COBOL Interview Questions

how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

0 Answers   Valtech,


What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?

4 Answers  


how would find total records in files using seqientional

1 Answers   HSBC,


What is the usage of comp fields in cobol?

0 Answers  


Should I use STOP RUN in the sub program??why?

6 Answers   Xansa,






What is an in line PERFORM? When would you use it? Anything else to say about it?

4 Answers  


can i give 9(10) in comp 3 instead of s9(10) ? if i can give wht would be ths ans

2 Answers   DELL,


how do u list the abended jobs?

1 Answers   IBM,


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

0 Answers  


What are different data types in cobol?

0 Answers  


i want to learn mainframes. i completed MCA ,whats the future of mainframes

5 Answers  


WE HAVE 5 DIFFERENT RECORDING MODE IN COBOL.FIXED, FIXEDBLOCK, VARIABLE, VARIABLEBLOCK AND UNDEFINED. WHAT IS THE DIFFERENCE AMONG ALL AND WHICH TYPE OF FORMAT SHOULD BE USED WHEN

3 Answers   Infosys,


Categories