Interview Question

What is double pointer?

A double pointer stores the address of another pointer object.

💡 Concept ✅ Quick Revision ⚙ C

Answer

A double pointer is a pointer whose pointed-to type is itself a pointer type. • It can let a function modify a caller’s pointer. • It is also used with arrays of pointers and linked structures. • Every pointer level must designate a valid object before dereferencing.

💡 C Example

int value = 7; int *pointer = &value; int **double_pointer = &pointer; **double_pointer = 9;

⚡ Quick Revision

A double pointer stores the address of another pointer object.