What do you mean by an array ? explain with an example
Answer Posted / shanu zabeen
Array is a collection of elements of similar data type and
these elements are stored in continuous memory locations.
int a[5] in c
creates an array of size 5 in continuos memory locations
whose indices will be 0,1,2,3,4.
in java A array in Java is like a fixed number of slots,
each slot holds a item, and all of them the same type.
int[] A;//array declaration in java
A=new int[10]; // 10 is the number of items
// now A is declared, and have assigned a value (initialized).
| Is This Answer Correct ? | 67 Yes | 6 No |
Post New Answer View All Answers
Can any one give an example (Source Code) on virtual function implemetation in Java?
How does the type system works when there is interoperability between a COM and .Net, i mean what exactly happens there
hai i am prasanna.I am MCA 2009 fresher.tell me about certifications.which certification helps me to improve my carrier and to get a technically oriented job ,which certification helps to get job faster.
what does mean and stack mean in genral programming?
How to get the index of the clicked field in reports in ABAP?
Given an array of size n, containing every element from 1 to n+1, except one. Find the missing element.
Write a program to show polymorphism.
Write a program to find factorial of a number using functions
what is web configuration file
Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 1 number. Find the missing number
Plz sent me in .net 2.0 interview Question & answers?
what is the difference between read the data from table and infotype
what is the difference between Windows application and Unix application?
what is the current salary package in India for a lamp programmer
in network security,how we identified threat?some one say we found threat according to it's signature,but how we get signature or pattern of the virus?