DP interview question

What is a pointer in C, and how is it declared?

Interview Answer

Anonymous

29 July 2025

A pointer is a variable that stores the memory address of another variable. It is declared using *, like int *ptr; to store the address of an int.

DP Interview Question: What is a pointer in C, and how is it declared? | Glassdoor