answersLogoWhite

0

eg:

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

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

*p= 10;

User Avatar

Wiki User

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


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 read data from array?

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


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.


In VBScript the first element of the array dim data(10) is accessed using?

In VBScript, the first element of an array declared as Dim data(10) can be accessed using data(0). This is because VBScript arrays are zero-based, meaning that the index starts at 0 and goes up to 10, allowing for a total of 11 elements. Therefore, to access the first element, you would use data(0).


What are the uses of pointers in c?

Pointers are used (in the C language) in three different ways:To create dynamic data structures.To pass and handle variable parameters passed to functions.To access information stored in arrays. (Especially if you work with links).Pointers are also used by experienced programmers to make the code more efficient and thus faster.So why use pointers? Why don't we use arrays to create data structures?The answer is simple. With an array you have to declare its maximum size (for every dimension) at the beginning. Let's say you create an array that can hold a maximum of twenty megabytes. When the array is declared, the twenty megabytes is claimed. Now this time you have only data for ten megabytes.(A next time it could be fifteen megabytes or five megabytes). So in this case ten megabytes of memory is wasted, because only ten megabytes from the twenty is used.This is where pointers come in. With pointers, you can create dynamic data structures. Instead of claiming the memory up-front, the memory is allocated (from the heap) while the program is running. So the exact amount of memory is claimed and there is no waste. Even better, memory not used will be returned to the heap. (Freed memory can be used for other programs).