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



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

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

More COBOL Interview Questions

I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

0 Answers   Steria,


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

0 Answers  


What are differences between COBOL and java ? why we are giving more preference to COBOL ?

3 Answers   TCS,


In COBOL "BEFORE" advancing is there or not ?

3 Answers  


Can a REDEFINES clause be used along with an OCCURS clause? if yes, 01 WS-TABLE. 03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'. 03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you expect? if no,why?

6 Answers  






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

0 Answers  


what is the meaning of pic 9(09)v99-

4 Answers   HSBC,


can we print comp 3 stmts how ?

3 Answers   Accenture, TCS,


There is a production file which has millions of records in it.The program that uses it ends up with an SOC7 abend.It is sure that the abend is due to some invalid data in the file.Is there any way to debugg the SOC7 abend with out giving displays? I need the record which is cause for the abend.

8 Answers   Danske, iGate,


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

0 Answers  


where will we code call by content and call by reference dude pls reply soon ?

2 Answers  


Under which scenario you would go for a static call as opposed to dynamic call?

5 Answers   TCS,


Categories