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

here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6839


When is inspect verb is used in cobol?

679


Differentiate between structured cobol programming and object-oriented cobol programming.

669


What is report-item in COBOL?

712


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1774






HOw can I get the negative sign while deduct high value from low value

1795


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

714


) how do u code after getting data?

1582


What are the access modes of START statement?

719


In COBOL, what is the different between index and subscript?

763


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

719


Which division and paragraphs are mandatory for a COBOL program?

712


How do you reference the following file formats from cobol programs?

698


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1962


Write a program to enter and display the names of students in a class using the occurs clause.

654