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

interested in personal coaching either in classes or home
we are providing class room training with flexible timing...
Dipti
How to create dynamic charts in Excel?
If the source table can grow automatically to include the data in the Chart automatically, then that is called a DYNAMIC CHART. Say, if you have included Jan to Apr month values in Chart and later try...
Vijayalakshmi G M
Are there any free online certification courses available or not?
Actually your question is wrong, first decide which certification you need, Then get some working experience, prepare for certification. For the free certification, i never seen any authenticated certification...
Chaganti
How many operating systems, I can install in my laptop?
Any number of operating system you can install with the help of Virtual desktop interface or VMware.
Thirumalai

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

Ask a Question

Related Lessons

SQL is not a Rocket Science
I am a Professional and at the inital days I completely hate Databases but I forgot to know that "Everything starts and ends with us".It means the INTEREST starts with us. Everybody knows this but none...

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

Student Project Development: How To Go About It?
A lot of students (count me as well) in their final year of IT course are confused and overwhelmed about their Project development. Final Year IT Projects are a crucial milestone in every IT students educational...

What is Framework?
In computer programming, a software framework is an abstraction in which software providing generic functionality can be selectively changed by additional user-written code, thus providing application-specific...

C and C++ programming with memory level debugging
Understanding C and C++ programming by using memory level debugging. Step 1: Understand the Memory map of C executable Step 2: Start memory level debugging using popular IDE Step 3: Find the memory...

Recommended Articles

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 >

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 >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

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