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
Name the sections present in data division.
Write a program that uses move corresponding.
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
How do you define a variable of comp-1 and comp-2?
What is inspect in cobol ?
) How do u handle errors in BMS macro?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is the LINKAGE SECTION used in COBOL?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How many bytes S(8) comp field occupy and its maximum value?
Why occurs cannot be used in 01 level in COBOL?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What is the difference between goback, stop run and exit program in cobol?
how do you reference the printer file formats from cobol programs
what is s000 u4087 error? please give the all error codes in cobol,jcl.