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
I m new to the dbms. Recently i came across words clustered indexes & nonclustered indexes but i dont know what is this all about & whats the difference between them.. So please help me!!!!!!!!
what is woransient key word? how it is used in java
what is the difference between Windows application and Unix application?
Find out the list of authorization objects which contains activity as a field? Thanks in advance.
Explain polymorphism. Provide an example.
Given an array of size n. It contains numbers in the range 1 to n. Find the numbers which aren?t present.
how many types of operating system are avaliable?
can u send some model papers how computer awareness questions are asked in goverment jobs(oriental insurance)to my mail id me.priyankapadma@rediff.com
Need guidewire related Documents(Interview Question/Tips/Best Practice/Dumps)
why we use mantis? what u mean mantis in IT trends? addvantages of mantis?
what will we require to build project with the help of oracle
difference between mantis and other tools?
Hello...has anyone interviewed with Information Management Services(IMS)located in Silver Spring MD??If yes,what can you share about the programming test and the analytical test?
Can we write a method in JSP.If so how?
Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik