eg:
int arr[3][4][5];
int *p= &arr[2][1][0];
*p= 10;
No. Linked lists require traversal, and are therefore accessed sequentially. For random access you need an array. An array of pointers to the data in your list would do, but you will incur an overhead in creating the array on top of the list.
Accessing data by address. Some data-structures, like lists and trees, are usually implemented using pointers.
You don't. Queues are a first in, first out structure, specifically used to process incoming data in the same order it arrives. If you want to sort a data sequence then use an array or a list.
Use the array suffix operator [] to access the individual elements of an array through a zero-based index.
A pointer is simply a variable that can store a memory address and has the same purpose in both languages. The only real difference is that C++ pointers can point at objects (instances of a class) and indirectly invoke their methods, whereas pointers in C (which is not object oriented) cannot.
Because using array you can easily access the data required
No. Linked lists require traversal, and are therefore accessed sequentially. For random access you need an array. An array of pointers to the data in your list would do, but you will incur an overhead in creating the array on top of the list.
Accessing data by address. Some data-structures, like lists and trees, are usually implemented using pointers.
An array of pointers to string would contain, per array position, a number dictating which memory address holds the string data. For example, position [0] in an array would contain a memory address. This memory address can be de-referenced to obtain the actual information held within that memory address.
You don't. Queues are a first in, first out structure, specifically used to process incoming data in the same order it arrives. If you want to sort a data sequence then use an array or a list.
Use the array suffix operator [] to access the individual elements of an array through a zero-based index.
Delete removes data forever, after using delete you will not be able to use deleted data again. Remove is different and action depends on where you are going to apply Remove. If you apply it for ListBox which are using data from an array. After you used applied the command to the ListBox you are still able to get access to the data using array. But if the ListBox the only source of data then Remove is equal to Detele.
In a form submitted using the GET method, the data is appended to the URL as query parameters. You can access this data using the $_GET superglobal array in PHP, or by parsing the URL in other programming languages.
A pointer is simply a variable that can store a memory address and has the same purpose in both languages. The only real difference is that C++ pointers can point at objects (instances of a class) and indirectly invoke their methods, whereas pointers in C (which is not object oriented) cannot.
It depends on the type of data, but generally you would just implement a data array and have a static pointer to the "next" element of the array and a static pointer to the "last" element of the array. New data would be added to the location of the "last" pointer. Data would be processed from the "next" pointer. Pointers would be incremented to the appropriate element whenever reading or writing and special attention given to any time you come to the end of the array.
Yes. A vector is a variable-length array but constant-time random-access is guaranteed regardless of an array's length.
array