What is "Call by content" and "call by reference"?

Answer Posted / sruthi

Call by reference means address of var is passed to sub pgm.
The modifications on the passed vars in sub pgm will be
effected in main pgm.
call by content means value of the var is passed to sub pgm.
The modifications on the passed vars in sub pgm will not be
effected in main pgm. that is local to sub pgm.

Is This Answer Correct ?    47 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

677


Write a program that uses move corresponding.

673


What is the difference between goback, stop run and exit program in cobol?

932


What is report-item in COBOL?

711


What is difference between static and dynamic call in cobol?

777






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

676


What is static and dynamic call in cobol?

597


what is the use of outrecord?

1771


IF I mention stop run in CICS what happens?

1897


Mention the guidelines to write a structured cobol program?

620


How many bytes S(8) comp field occupy and its maximum value?

1634


Can we redefine the field of x(200) to less than 200?

820


What are the various section in data division and briefly explain them.

700


how do you reference the esds vsam file formats from cobol programs

634


What do you understand by psb and acb?

666