Computer Science, asked by RUDEGIRL, 10 months ago

What is a pointer on a pointer in C programming language?

Answers

Answered by EHSASS
5

░▒▓█►─═ ʜᴇʀᴇ ɪs ʏᴏᴜʀ ᴀɴsᴡᴇʀ ═─◄█▓▒░

Pointer on a pointer in C programming language

A pointer variable that contains the address of another pointer variable is called pointer on a pointer. This concept de-refers twice to point to the data held by a pointer variable.

ᴇʜsᴀss   ✿◕ ‿ ◕✿

Answered by ty009
3
MARK ME AS BRAINIEST

Explanation of pointer on a pointer in C programming language:

A pointer to a pointer is a form of multiple indirection, or a chain of pointers. Normally, a pointer contains the address of a variable.

When we define a pointer to a pointer, the first pointer contains the address of the second pointer, which points to the location that contains the actual value as shown below.

A pointer points to a location in memory and thus used to store address of variables. So, when we define apointer to pointer.

The first pointer is used to store the address of second pointer. That is why they are also known as double pointers.

For example, an integer variable holds (or you can say stores) an integer value, however an integer pointer holds the address of a integer variable.
Similar questions