why arrey is used?

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

Coaching

Array is a static , homogeneous and linear data structure. Array is a linear structure measns data is organised sequentially i.e (one after another in a memory). It is a homogeneous data structure i.e. colloection of similar data types. The data type of array can be inbuilt like int , float ,char,...
read more
Array is a static , homogeneous and linear data structure. Array is a linear structure measns data is organised sequentially i.e (one after another in a memory). It is a homogeneous data structure i.e. colloection of similar data types. The data type of array can be inbuilt like int , float ,char, double and even user defined that is created using a structure or a class. The main use of an array is to oragnise homogeneous data together as a group to perform operations on data. Uses of array in progarmming:Matrix operations(transpose,addition ,subtraction,multiplication, inverse).creation of index lists etc.. read less
Comments

Trainer

In computer science an array is a data structure consisting of a group of elements that are accessed by indexing. Arrays are used to implement mathematical vectors and matrices, as well as other kinds of rectangular tables. Many databases, small and large, consist of (or include) one-dimensional...
read more
In computer science an array [1] is a data structure consisting of a group of elements that are accessed by indexing. Arrays are used to implement mathematical vectors and matrices, as well as other kinds of rectangular tables. Many databases, small and large, consist of (or include) one-dimensional arrays whose elements are records. Arrays are used to implement other data structures, such as heaps, hash tables, deques, queues, stacks, strings, and VLists. One or more large arrays are sometimes used to emulate in-program dynamic memory allocation, particularly memory pool allocation. Historically, this has sometimes been the only way to allocate "dynamic memory" portably. read less
Comments

Get Trained, Get Noticed n Let's WIN Together

An Array is used for the following benefits- 1. It is used to represent multiple data items of same type by using only single name. 2. It can be used to implement other data structures like linked lists, stacks, queues, trees, graphs etc. 3. 2D arrays are used to represent matrices. We also...
read more
An Array is used for the following benefits- 1. It is used to represent multiple data items of same type by using only single name. 2. It can be used to implement other data structures like linked lists, stacks, queues, trees, graphs etc. 3. 2D arrays are used to represent matrices. We also should know its disadvantages which are given below - 1. We must know in advance that how many elements are to be stored in array. 2. Array is static structure. It means that array is of fixed size. The memory which is allocated to array can not be increased or reduced. 3. Since array is of fixed size, if we allocate more memory than requirement then the memory space will be wasted. And if we allocate less memory than requirement, then it will create problem. 4. The elements of array are stored in consecutive memory locations. So insertions and deletions are very difficult and time consuming. read less
Comments

Selenium WebDriver

Generally if we want to store any single value - then we will use one 'Variable' to store. Example _ if you want to store a value 10 of type integer - then you have to store in 'int var=10;' - But if we want to store one or more than one value in the same variable then we have to use array.It means,...
read more
Generally if we want to store any single value - then we will use one 'Variable' to store. Example _ if you want to store a value 10 of type integer - then you have to store in 'int var=10;' - But if we want to store one or more than one value in the same variable then we have to use array.It means, if you want to store one or more values of similar type (int type or float type or double type .... etc) in one single variable, then it is possible by using arrays(array variable). Example - if you want to store values 10, 20 of type integers in single variable then you can store as follows : int var[] = {10,20}; here variable is an array of type int which hold two values that is 10,20 and those are stored in the same variable by index var[0] holds 10 and var[1] holds 20. ==================================================================== you can store values in array in two ways. 1. Inline (Storing values at the same time during declaration). - The good example for inline initialization is the above example. 2. Initialization (Storing values in future). - it means you can store values in array when ever we need. Example is as follows : Example Initialization : int a[] = new int[3]; - here the size of an array is 3, index will always starts from zero. and you can store values of type int (10, 20 , 30) as follows : a[0] = 10; a[1] = 20; a[2] = 30; The Limitation of array is - once you mention the size then it is fixed. It means once if you give the size of an array then you can store the values in that particular array only upto the size. In the above example the array variable 'a' can have only 3 values. if you add one more value even by mistake i.e) a[3]=40; then it won't show any error at the time of compilation. But it throws Exception during Run time (Exception Name:- Array Index out of Bound). =========================================================================================================================== If you want to store array of arrays then you will go for double dimension arrays. example :- int i={2,3,4} and int j={5,6,7} you can store both i and j in one varible as follows : int var[][] = {i, j} - In this case var is of size 2 arrays, and var[0] is first array and var[1] is second array if you want to see the values from first array which has 3 values then - var[0][0] = 2 var[0][1] = 3 var[0][2] = 4 if you want to see the values from Second array which has 3 values then - var[1][0] = 5 var[1][1] = 6 var[1][2] = 7 ---------------------------------------------------------------------------------------------------------------------- In two dimention array you can store values of multidimention arrays also Example :- int m={2,3} and int n={5,6,7} here 'm' array is of size 2 and 'n' array is of size 3. you can store those two different size arrays in variable as int var[][] = {n, m} In this case var is of size 2 arrays (var.length) and var[0] is first array and it's length is 2 and var[1] is second array and it's length is 3 if you want to see the values from first array which has 2 values then - var[0][0] = 2 var[0][1] = 3 and if you want to see the values from second array which has 3 values then - var[1][0] = 5 var[1][1] = 6 var[1][2] = 7 ----------------------- read less
Comments

Android Developer

Array you can think of as a structure to hold collection of similar objects. Say array of integers, strings,etc. Array provide good visualization of computer memory as the memory is usually allocated in contagious manner. So its very useful in system programming. In system, Usually there is array...
read more
Array you can think of as a structure to hold collection of similar objects. Say array of integers, strings,etc. Array provide good visualization of computer memory as the memory is usually allocated in contagious manner. So its very useful in system programming. In system, Usually there is array of a segment which you can accesss with the help of pointers in C or C++. read less
Comments

Cyber Security Consultant with more then 18 years experiances

C programming language provides a data structure called the array, which can store a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type. Instead...
read more
C programming language provides a data structure called the array, which can store a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type. Instead of declaring individual variables, such as number0, number1, ..., and number99, you declare one array variable such as numbers and use numbers[0], numbers[1], and ..., numbers[99] to represent individual variables. A specific element in an array is accessed by an index. All arrays consist of contiguous memory locations. The lowest address corresponds to the first element and the highest address to the last element. read less
Comments

Array is linear data structure (Continous set of memory blocks) which holds elements of same data type ... e.g. Array of roll Numbers, Array of salary of employees etc. Hope this will help. If any further query, feel free to contact me.
Comments

Computer Teacher Expert in Programming

Array is a linear data structure. If you want to store the same type of data in sequential manner then you can use array. If you are declaring so many variables in memory then these will store with different names at different locations. But If you are using array then it stores with a single name by...
read more
Array is a linear data structure. If you want to store the same type of data in sequential manner then you can use array. If you are declaring so many variables in memory then these will store with different names at different locations. But If you are using array then it stores with a single name by using indexing. so data will be stored sequentially. read less
Comments

Artist

To store information of multiple values in single variable. Like "This is an array" is a sentence of 4 words. We can say it as array of 4 strings. And each word is made of array of alphabets. Google out for more details.
Comments

Trainer

An array is data structure (type of memory layout) that stores a collection of individual values that are of the same data type. Arrays are useful because instead of having to separately store related information in different variables (named memory locations), you can store them—as a collection—in just...
read more
An array is data structure (type of memory layout) that stores a collection of individual values that are of the same data type. Arrays are useful because instead of having to separately store related information in different variables (named memory locations), you can store them—as a collection—in just one variable. It is more efficient for a program to access and process the information in an array, than it is to deal with many separate variables. read less
Comments

View 30 more Answers

Related Questions

What is the difference in Truncate and Delete in SQL?
There are lot of differences between DELETE and TRUNCATE statements in SQL Server. All these difference are listed below--- DELETE ----> 1. DELETE is a DML Command. 2. DELETE statement is executed...
SEED Infotech Ltd
what is java core language?
Core Java" is Sun's term, used to refer to Java SE, the standard edition and a set of related technologies, like the Java VM, CORBA.. "Core Java" is Oracle's definition and refers to subset of Java SE technologies.
Md
0 0
9

Hi, I am a website designer. I used to convert psd into html and also use some basic Javascript for the functioning part. Now I want to work as a developer, so I want to know the scope of UI Development. What language should I need to focus on to get properly into development for the long term?

First of all the role of a UI developer is that of a combination of a web designer and a web developer. The language skills required for a UI developer are front-end web development languages like HTML,...
Mudita
What are codes required to create a new operating system?
^^ He is asking about Operating System not windows and for creating Operating System you should have a good knowledge of various complex areas of computer science from hardware to software like OS algorithms,...
Vijay
I want to know the basic of C programing and which book is best for C programming??
"Programming in ANSI C by Balaguruswamy" - for basics.
Kumar

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Essential SQL Tips For Developers And For MS SQL DBA
10 Essential SQL Tips for Developers: SQL is yet another essential language for developers wishing to create data-driven websites. However, many developers are unfamiliar with various aspects of SQL;...

Graphics and Game Development
Hi there, I am sure you all would have played video games for killing time. Do you know how these are developed? I am going to introduce you to some details of the gaming industry. Gaming is a serious...

Merge Multiple PST Files into One Using PST Merge Tool
Overview of PST Merge Software The PST Merge is a software which merge multiple PST files into a single PST file. It makes sure that when PST files are merged into a new file, the original PST files should...

Efficient Learning Strategies
Type your notes after class Write your notes onto flashcards - Scrabble -Make posters Review flashcards while walking, at gym, etc. Dog-ear pages in the reading where you can find...

How Motivation Affects Learning and Behavior
Motivation directs behavior toward particular goals. Motivation leads to increased effort and energy. Motivation increases the amount of effort and energy that learners expend in activities directly...

Recommended Articles

MCTS Certification in India The Microsoft Certified Technology Specialist or MCTS certification is suited for professionals who want to get into profession of implementing, building, troubleshooting, and debugging a particular Microsoft technology. The MCTS certification can give you a clear edge over others to showcase...

Read full article >

Decades back, when computers were being introduced in office premises, PPT was a new terminology that all employees tried to learn. Now PPT has made its way far away from offices and is an integral part of schools, colleges, and several other official proceedings. This is because PPT is an user-friendly computerized method...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Whether you are using a laptop or a desktop, the mouse surely takes up time. Imagine if you could alone manage with the keys and not have to move your hands around the mouse? That would have been faster and so much time-saving. For example, Control + Z for undo or Control + Y for redo, definitely saves time when we are...

Read full article >

Looking for Computer Software Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you