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

I am looking for datastage 8.5 installation in my system for practice let me know where i can get it .
Please refer this link once.. http://www.scribd.com/doc/46695490/Datastage-8-5-Installation-Guide
Susant
Hi, I am working as a web designer and want to work as UI developer. So what should I have to learn initially? And learning Angular Js would be a good option?
It is good choice web designer to become web developer (UI developer). Start with the basics first learn HTML and CSS, Then go and continue with bootstrap and Angular js.
Mudita
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
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

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

Ask a Question

Related Lessons

Software Development Training In Jaipur
Satyam Web Solution provides website designing &development and software designing &development training in Jaipur for various stream’s students. MCA 6 month Industrial Training/Internship B....

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

Easy way to remember Java keyword.
ACCESS MODIFIER ACCESS SPECIFIER abstract, assert, const, final, native, static, strictfp, super, synchronized, this, transient, void, volatile public, private, protected, default DATA...

Rohit Deshbhratar

1 0
0

Focus on Fundamentals
It is very important to focus on fundamentals of any subject one is interested to gain command over that subject. If one learns and understand the fundamentals throughly, it is easy to grasp the advance...

Big Data Hadoop Training
What is Big Data? Big data means really a big data, it is a collection of large datasets that cannot be processed using traditional computing techniques. Big data is not merely a data, rather it has become...

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