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

When is inspect verb is used in cobol?

955


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

1104


what are decleratives in cobol?

2028


what is the use of outrecord?

2002


What are the pertinent COBOL

2269


What is the local-storage section?

915


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

1780


What are the different types of condition in cobol and write their forms.

894


how do you define single dimensional array and multidimensional array in your cobol?

899


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

938


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2243


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1108


A table has two indexes defined. Which one will be used by the SEARCH?

1058


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1995


What are the access modes of START statement?

969