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

) How do u handle errors in BMS macro?

1634


Whats the difference between search & search ALL?

5917


Write a program to explain size error.

896


how to refer the data field?

2000


How arrays can be defined in COBOL?

845


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

1049


Write some characteristics of cobol as means of business language.

859


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

943


Can we redefine the field of x(200) to less than 200?

1109


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

1019


Explain how to differentiate call by context by comparing it to other calls?

922


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

2154


What is the difference between PIC 9.99 and 9v99 in COBOL?

993


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17530


I have a File that has duplicate records. I need only those records that occur more than thrice.?

9253