What do you understand by passing by reference and passing by content?

Answer Posted / robertd903

Passing by reference, is passing the ADDRESS of a variable--to a subprogram. The subprogram is able to change the value contained in the variable.

Passing by content is passing the DATA contained within a variable--to a subprogram. The subprogram can NOT change the value of the data in the (calling program's) variable.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

For rewrite, why is it mandatory that file needs to be opened?

620


Write a program that uses move corresponding.

668


How to know whether the module is dynamical or statistical?

650


how do you reference the printer file formats from cobol programs

655


How you can characterize tables in cobol?

710






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?

1228


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

670


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

992


What is amode(24)?

680


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

1646


What is a SSRANGE and NOSSRANGE?

818


Why did you choose to work with ibm mainframe cobol programming?

627


) how do u code after getting data?

1578


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

695


What are declaratives and what are their uses in cobol?

706