With in these three which one is the default one Call
Reference, Call By Value, Call By Content.-Which one is
default?
Answer Posted / shilpa
we can call the subprogram by refarence or content, but
call by refarence is default.
call by refarence: when we are passing the value from
mainprogram to subprogram if any changes in subprogram it
reflect also in main program but in call by content if any
changes in subprogram it wont reflect on mainprogram.
we can call the subprogram by dynamically or statically.in
this scenario the default is static call. in dynamic call
we call the program by value. in static call we call the
program by literal.
first we understand the main difference between static call
and dynamic call.
if any changes in subprogam in static call it will reflect
in msin program so we can recompile the mainprogram again
but not in dynamic. if we want to change any call program
just change the program name no neeed to change again and
again.dynamic call is faster compared to static call.
| Is This Answer Correct ? | 6 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 difference between Call and a Link?
Mention the guidelines to write a structured cobol program?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What are the various section in data division and briefly explain them.
Write a program to explain size error.
What is the difference between binary search and sequential search?
Differentiate between structured cobol programming and object-oriented cobol programming.
What the difference is between continue and next sentence?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Which division and paragraphs are mandatory for a COBOL program?
What are the pertinent COBOL
what happens if parmparameter passes zero bytes to the program
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc