what is call by value and call by reference ?
Answer Posted / srinivasa yadav
CALL BY VALUE: THE MEMORY AREA FOR ACTUAL AND FORMAL
PARAMETERS ARE DIFFERENT.
CALL BY REFERENCE: THE MEMORY AREA FOR ACTUAL AND FORMAL
PARAMETERS ARE SAME. SO WHATEVER VALUES HAS CHANGED IN
FORMAL PARAMETERS WILL BE EFFECTED TO ACTUAL PARAMETERS.
| Is This Answer Correct ? | 24 Yes | 2 No |
Post New Answer View All Answers
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What is the compute verb? How is it used?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
HOw can I get the negative sign while deduct high value from low value
What is Pic 9v99 Indicates in COBOL?
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?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
Write down the divisions of cobol program?
How to remove 2 duplicate records and copy only one using job control language?
What are various search techniques in cobol? Explain.
What is the problem of ordered sequential files access?
In COBOL, what is the different between index and subscript?
What is amode(24)?
What are literals?
What is a report item?