Can we access the a[0] in the array ?

Answer Posted / suresh ramaiyan

It will give compilation time error, as the compiler knows
the value of subscript when compile the program.
ex: A[0]

if you are accessing the same by subscript variable, then
it will give run time error.
ex: A[ws-cnt]

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to enter and display the names of students in a class using the occurs clause.

654


What is the difference between Call and a Link?

702


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

711


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1914


What is the Purpose of POINTER Phrase in STRING command in COBOL?

723






Write some characteristics of cobol as means of business language.

622


Which Search verb is equivalent to PERFORM…VARYING?

689


What is a report item?

741


Mention the guidelines to write a structured cobol program?

620


how do you reference the variable block file formats from cobol programs

688


How many bytes S(8) comp field occupy and its maximum value?

1636


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2734


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

635


Name the sections present in data division.

701


Can we change the password using ALTER? anyone tried and changed?

1552