| |
GeekInterview.com > Placement Papers > TCS > COBOL
| Print | |
Question: given the following piece of code: CALL SUB-PGM USING A, B, C. CALL SUB-PGM USING A, C, C. (a) Both CALL statements will always produce same result. (d) Both CALL statements may produce different result. (c) Compile-time error because SUB-PGM is a dataname. (d) Compile-time error because A, B, C are used twice.
|
| September 09, 2007 08:54:21 |
#1 |
| NAGARAJ |
Member Since: Visitor Total Comments: N/A |
RE: given the following piece of code: CALL SUB-P... |
ans:(b) both CALL stmt produce different result,because they are "call by reference" by default,any changes made in the sub pgm affects the main pgm. |
| |
Back To Question | |