what is call by value and call by reference ?

Answers were Sorted based on User's Feedback



what is call by value and call by reference ?..

Answer / 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

what is call by value and call by reference ?..

Answer / pradeep reddy

call by reference is a defoult if we change farmal
parameters then actual parameters also get changed..
call by value: its user defined if we change farmal
parameters not effected actual parameters...

Is This Answer Correct ?    15 Yes 3 No

what is call by value and call by reference ?..

Answer / raghunathareddy

call by value means intialize the vatriable..cal by ref means
calling the reference....

Is This Answer Correct ?    6 Yes 7 No

Post New Answer

More COBOL Interview Questions

What is difference between COBOL and VS COBOL II?.

1 Answers   Winsol Solutions,


In CICS/VSAM every file that is accessed should be defined in FCT. we have CICS READ, WRITE, BROWSE commands for VSAM files. How does it work with DB2 tables. It know it has to do with the plan. Please expain with examples.

1 Answers  


What is length is cobol?

0 Answers  


how do u link sub pgm to main pgm ?

2 Answers   TCS,


What is Redefines clause?

8 Answers  


I want to declare a field with data type Double in my COBOL program. how shall i do that ?

5 Answers  


how do you reference the rrds file formats from cobol programs

0 Answers  


Why we should use cursor ?

3 Answers  


wht is packed decimal in cobol

2 Answers  


wirte a pgm in using files in which we hav 10 ,20,30 40...100 records in inputfile and i want them to be send to outputfile in reverse order. PLZ HELP ME OUT .........THIS IS A RECENT QUESTION IN IGATE..

5 Answers   iGate,


can we use COPY statement in w-s section? how?

3 Answers  


how will u retreive value from a table.write it with syntex. 01 ws-table 05 ws-table1 occurs 10 times. 05 ws-table2 occurs 10 times. the above is 2 dimensional array..how will u retrieve 1st element of an array

3 Answers   ADP,


Categories