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
What's the difference b/w Table & Templete in Smartform?
what is d main diff between the java and .net framework
Given n red balls and m blue balls and some containers, how would you distribute those balls among the containers such that the probability of picking a red ball is maximized, assuming that the user randomly chooses a container and then randomly picks a ball from that.
What is abstract Method i want the exact definition and is there any possibility to declare class as abstract without any abstract methods in that class?If it is possible then tell me why and how?
what is the software to run the GSM gate opener program
is it acceptable if we declare multiple exceptions in same overridden method.
Hi can you please send me recent(present) interview questions and technical qyestions with answers for "BUSSIESS OBJECTS" and "DATA WAREHOUSE".pls its urgent for me my mail id is sekhar.cs82@gmail.com,manjuforgis@gmail.com. thanks in advance
What are events in smartforms?
is it possible to desable particular parameter of the normal orcle report based on some condition ?????? if yes,wht is the function for desabling a parameter...
1. Consider the following code in our example assembly language: ; an example bit of assembly code ROOT: W FATHER FATHER: W SON1 W SON2 SON1: W NIL W NIL ; ---------------------- SON2: W GRANDSON W NIL GRANDSON: W NIL W NIL NIL = 0 Assemble this code carefully following the two pass model, and show the symbol table at the point marked by the dashed line during each pass.
Given an array of size n+1 which contains all the numbers from 1 to n.Find the number which is repeated in O(n) time.How do you proceed with the same with floating numbers from 0 to 1 instead of 1 to n?
hii I inntrested abt scjp certification but i dont knw abt scjp plz send details abt scjp exam and syllabus.
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!!!!!!!!
I'm new to ABAP. What is Module pool in SAP?
How to set on/off a group of indicators in a single statement?