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

Answer Posted / shiva

call by reference passes address of variable to the subprogram
and any changes to this variable will affect the main program

this is bcoz they have allocated the same memory..

whereas in call by content the value of the variable is
passed to the subprogram and any changes to that variable
does not affect the main pprogram..this is bcoz they have
allocated seperate memories.......

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do u write test cases?

1638


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10617


What are the pertinent COBOL commands?

2626


State the various causes of s0c1, s0c5 and s0c7.

665


What is the utilization of copybook in cobol?

657






What are literals?

632


What is link edit in cobol?

772


What is the Purpose of Pointer in the string?

643


What is an in line perform? When would you use it? Anything else you wish to say about it.

645


) what is the difference between AID and HANDLE AID?

1637


What is the difference between comp and comp-3?

704


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?

700


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

1655


How can you get the ksds file records into your cobol program?

644


) how do u code after getting data?

1580