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


Please Help Members By Posting Answers For Below Questions

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

745


What are declaratives and what are their uses in cobol?

716


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

714


Have you used comp and comp-3 in your project? And how?

2014


Which division and paragraphs are mandatory for a COBOL program?

718






What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

691


Write a program to explain size error.

683


What is the difference between perform … with test after and perform … with test before?

895


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

688


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1008


What is static and dynamic call in cobol?

601


What is a scope terminator give example?

661


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8186


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

1644


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?

6849