answersLogoWhite

0


Best Answer

variable cant occupy contigious memory it may take complexity in storing vast data.this becomes easy on using the array concept....

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the limitations of a variable over advantage of array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Can you give an example of array using character variable in c program?

the example of array over charcter variables is char ["string"]


What is the algorithm using c to delete duplicate elements from an array?

To detect the duplicate, you will have to write a nested loop that compares each element with all the previous elements.To actually delete the duplicate, once you find it, you have to move over all the elements after the duplicate. If the order of the elements doesn't matter, it is faster to just move the LAST array element, overwriting the duplicate element. Use a variable to keep track how many elements of the array are "usable". For example, if your array had 10 elements, and you delete 1, the array size will still be 10... but (after moving the elements over) only 9 of those elements have useful information.


Why you use array in c language?

The idea of an array is to store data for different related items, using a single variable name. The different items are distinguished by a subscript (a number, which may also be a variable or some other expression)For example, if you want to track scores for four different players in a computer game, you could create an array for those scores.The idea of an array is to store data for different related items, using a single variable name. The different items are distinguished by a subscript (a number, which may also be a variable or some other expression)For example, if you want to track scores for four different players in a computer game, you could create an array for those scores.The idea of an array is to store data for different related items, using a single variable name. The different items are distinguished by a subscript (a number, which may also be a variable or some other expression)For example, if you want to track scores for four different players in a computer game, you could create an array for those scores.The idea of an array is to store data for different related items, using a single variable name. The different items are distinguished by a subscript (a number, which may also be a variable or some other expression)For example, if you want to track scores for four different players in a computer game, you could create an array for those scores.


Advantage of linked list over array?

The only real advantage a linked list has over an array is that it can grow much more efficiently, however this is only guaranteed when new elements are inserted at the head or the tail of the list where you have constant time access. Constant time random access is not possible, thus insertions within the body of the list may be slower than for an array because of the need to traverse to the insertion point. However an array must reallocate in order to make room for new elements which may result in the entire array being moved to new memory. This can be minimised by reserving memory in advance. But, more importantly, all elements from the insertion point must be moved forward in the array in order to make a gap for new elements. Thus inserting into an array can often be slower than for a list, particularly if the elements do not support move semantics (they must be copied instead). If you plan on performing many such insertions, then a list will probably be quicker overall because there is no need to move elements around in memory. However, if you require random access and compact storage, use an array instead and reserve as many elements as you require for your insertions.


What is advantage of capacitor filter over RC filter?

sounds same to me.maybe you meant advantage of LC filter over RC filter

Related questions

Can you give an example of array using character variable in c program?

the example of array over charcter variables is char ["string"]


What is the difference between an array element and a variable?

Array elements are all members of the same variable, indexed in a logical manner. variables are distinct objects which must be referred to distinctly. The main functional difference is that a program can iterate over an array without the programmer knowing the original size of the array or explicitly which member to access.


What advantage does the Java ArrayList class have over the Arrays class?

The biggest advantage of an ArrayList is that it can expand in size to fit more data. So, if you don't know how many data values you are going to have, you can construct an ArrayList. Whenever you use the add() method, the object will be added to the ArrayList, regardless of the current size. An Array does not have this advantage. When you construct an Array of size n, the array will always be that size.


Which Oracle type must you use to make values inserted into an associative array persist over the life of a user's session?

Package variable


What are the advantage of Yagi-uda array?

The Yagi array allows a significant increase in antenna gain (expressed in dBi or Db over isotropic) by the simple addition of parasitic elements to a dipole or folded dipole.


What is the algorithm using c to delete duplicate elements from an array?

To detect the duplicate, you will have to write a nested loop that compares each element with all the previous elements.To actually delete the duplicate, once you find it, you have to move over all the elements after the duplicate. If the order of the elements doesn't matter, it is faster to just move the LAST array element, overwriting the duplicate element. Use a variable to keep track how many elements of the array are "usable". For example, if your array had 10 elements, and you delete 1, the array size will still be 10... but (after moving the elements over) only 9 of those elements have useful information.


Why you use array in c language?

The idea of an array is to store data for different related items, using a single variable name. The different items are distinguished by a subscript (a number, which may also be a variable or some other expression)For example, if you want to track scores for four different players in a computer game, you could create an array for those scores.The idea of an array is to store data for different related items, using a single variable name. The different items are distinguished by a subscript (a number, which may also be a variable or some other expression)For example, if you want to track scores for four different players in a computer game, you could create an array for those scores.The idea of an array is to store data for different related items, using a single variable name. The different items are distinguished by a subscript (a number, which may also be a variable or some other expression)For example, if you want to track scores for four different players in a computer game, you could create an array for those scores.The idea of an array is to store data for different related items, using a single variable name. The different items are distinguished by a subscript (a number, which may also be a variable or some other expression)For example, if you want to track scores for four different players in a computer game, you could create an array for those scores.


What is an advantage of a saving account over a cheking account?

One advantage that I can think of is the fact that Savings Accounts usually offer an interest on the money held in the account whereas Checking accounts offer very little or on most cases zero interest on the money held in the account. On the flip side, there are limitations on the number of transactions you can make on your account in case of Savings accounts whereas there are no such limitations for a checking account.


Adavantage of pointer based of a list over an array?

One advantage of a linked list (with pointers) is that it is fairly cheap to insert or delete an element - once you know where it is. A disadvantage is that getting a specific element - for example, the 1000th. element - is expensive.


Do the statute of limitations start over if a case is reopened?

It can cause the statute of limitations to start over, or at least toll. It will depend on the law in the jurisdiction and how it is written.


Does the statute of limitations on credit card debt start over when sent to collections?

No, the statute of limitations won't start over again unless you make a payment.


Advantage of linked list over array?

The only real advantage a linked list has over an array is that it can grow much more efficiently, however this is only guaranteed when new elements are inserted at the head or the tail of the list where you have constant time access. Constant time random access is not possible, thus insertions within the body of the list may be slower than for an array because of the need to traverse to the insertion point. However an array must reallocate in order to make room for new elements which may result in the entire array being moved to new memory. This can be minimised by reserving memory in advance. But, more importantly, all elements from the insertion point must be moved forward in the array in order to make a gap for new elements. Thus inserting into an array can often be slower than for a list, particularly if the elements do not support move semantics (they must be copied instead). If you plan on performing many such insertions, then a list will probably be quicker overall because there is no need to move elements around in memory. However, if you require random access and compact storage, use an array instead and reserve as many elements as you require for your insertions.