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

Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.

12 Answers   CTS, Wipro,


01 a pic 9(3) value is 123 01 b pic 9(6) move a to b wht will be the value ? and 01 a pic x(6) value is abc 01 b pic x(3) move a to b wht will be the value ?

7 Answers   Patni,


What is the difference between comp and comp-3 usage?

0 Answers  


what is difference between the sysabend and userabend?

2 Answers  


Write the syntax of a two dimensional array?

8 Answers   Honeywell, Xansa,






if one main program ,n -subprograms are then which call you follow ?why reasonuhg

4 Answers   UHG,


what are the working storage fields in BMS macro?

2 Answers   IBM,


What is report-item?

1 Answers   IBM,


When search all is used in cobol program without sorted input data?

6 Answers   CGI, Principal Finance,


COBOL program to read the string ' BOMBAY' in reverse order as 'YABMOB'

8 Answers   Barclays, IBM,


What is an in-line perform ?

4 Answers   Accenture,


Study the DATA DIVISION entries and the three PROCEDURE DIVISION entries given below: 01 END-OF-FILE-SWITCH PIC XXX. 88 NO-MORE-RECS VALUE "YES". 88 MORE-RECS VALUE "NO". (i) READ SAMPLE-FILE AT END MOVE "YES" TO NO-MORE-RECS. (ii) IF NO-MORE-RECS = "YES" GO TO LAST-PARA. (iii) IF NO-MORE-RECS GO TO LAST-PARA. Which are wrong? (a) (i) and (ii) (b) (ii) and (iii) (c) (i) and (iii) (d) all

5 Answers   TCS,


Categories