what is call by value and call by reference ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between cobol and cobol-ii?

947


What is amode(24)?

884


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2362


Discuss about changing dataset name in proc.

959


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

888


What is the difference between comp and comp-3 usage?

871


how do you reference the printer file formats from cobol programs

903


Why would you use find and get rather than to obtain?

904


what is the use of outrecord?

1972


how do you reference the variable block file formats from cobol programs

937


how do you reference the variable unblock file formats from cobol programs

1009


Write some characteristics of cobol as means of business language.

848


What rules are followed by the search verb.

834


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1412


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

906