I have 2 dimensional array with having 100 elements. So how
to find the 11th item in an array?
Answer Posted / dipali jaju
give subscript as 11 ,like if we have temp as table name,
then
display "temperature : " temp(11)
but if table is two dimentional then
__________________________
| 1 | 2 |
|_________ _|____________|
| | | | |
|0-25 |26-50|51-75|76-100|
|_ele_|_ele |_ele |_ele |
so to fetch 11 the record we have to write temp(1,11)
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What is the difference between a binary search and a sequential search what are the pertinent cobol?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Write a program to explain size error.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What are the rules of the move verb?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
Which division and paragraphs are mandatory for a COBOL program?
How do u write test cases?
Have you used comp and comp-3 in your project? And how?
A table has two indexes defined. Which one will be used by the SEARCH?
What is the difference between binary search and sequential search?
Can a Search can be done on a table with or without Index?