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

what r the types of perform statement

4 Answers  


How do you differentiate between cobol and cobol-ii?

0 Answers  


if a=b how the flow will complete??? perform test through test-exit. perform activa through activa-exit. test. if a=b then next sentence else move a to c. test-exit. exit. activa. -- -- activa-exit. exit.

1 Answers   IBM,


how can i see junk values in dclgen or in hostvariable of comp ?

0 Answers   DELL,


copy 100 records without using ibm utilities

3 Answers  






What is a scope terminator give example?

0 Answers  


Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?

5 Answers   IBM,


What is the difference between Global and External Variables?

0 Answers  


What is the purpose of Identification Division?

1 Answers  


if we have a 10 steps how to override the 4th step in jcl?

2 Answers   Hewitt,


When is a scope terminator mandatory?

3 Answers  


in cobol i have one file it contains records like 10,4,23,98,7,90..... total records 100. iwant 10 to 20 in reverse order in cobol environ ment any one please give the answer......

2 Answers   IBM,


Categories