answersLogoWhite

0

eg:

int arr[3][4][5];

int *p= &arr[2][1][0];

*p= 10;

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is need to array?

Because using array you can easily access the data required


Is it true or false that a dynamically linked list can be accessed both sequentially and randomly?

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.


What are the applications of pointers in using c language?

Accessing data by address. Some data-structures, like lists and trees, are usually implemented using pointers.


What are array of string 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.


How do you sort a queue?

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.


How do you read data from array?

Use the array suffix operator [] to access the individual elements of an array through a zero-based index.


What is the difference between delete and remove in C?

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.


How do you get information from a form that is submitted using the get method?

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.


Difference between array and pointers in c plus plus?

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.


What is C implementation of queues?

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.


Is it the most efficient approach to access elements with the vector data structure?

Yes. A vector is a variable-length array but constant-time random-access is guaranteed regardless of an array's length.


What is a table or worksheet of data arranged in rows and columns using formulas to calculate data?

array