UrbanPro

Learn Computer Software from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

why arrey is used?

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

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

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

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

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

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

Array is used to store collection of data when the entire data is of same type (for example: roll numbers of all students in class, days in a month etc.) and the amount of data is fixed.
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

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

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

View 30 more Answers

Related Questions

which course do u suggest me to do to get placed in IT. Im a 2008 graduate.
Definitely any of the programming languages. To the most of it, learn generic skills most common to all of those in the market.. Whether Java, DotNet whatever. Master the frameworks in it.
David
What we do with html?
In HTML we can design web pages with the help of frames, tags, and tables etc.
Suraj
Give me details about security options in Excel?
I support Mazespace answers. Thank you Mazespace.
Vijayalakshmi G M
What is the difference between Paste and Paste Special Option in Excel?
Paste: Paste all values, formats, formulas, comments, etc. Paste special: Paste with option, only values, only values, only formats, etc or all.
Vijayalakshmi G M

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;...

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...
V

Python breaks into the top three programming languages in the Tiobe Index for the first time.
Python breaks into the top three programming languages in the Tiobe Index for the first time. The popularity of Python shows no sign of waning, with the programming language entering the top three in...

GIT
In software engineering, software configuration management (SCM) is the task of tracking and controlling changes in the software, part of the larger cross-disciplinary field of configuration management....
R

Antivirus is not enough. Cyber criminals hate us. We protect from attacks that antivirus can't block. 
Engineering and internet encouraged the conception and development of network indecencies like virus, antivirus, hacking and ethical hacking. Hacking is a practice of adjustment of a computer hardware...

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
X

Looking for Computer Software Classes?

The best tutors for Computer Software Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Computer Software with the Best Tutors

The best Tutors for Computer Software Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more