Pregunta de entrevista de Tata Consultancy Services

Explain the difference between a pointer and an array in C.

Respuesta de la entrevista

Anónimo

15 de jun de 2026

I explained that a pointer stores the address of another variable, while an array is a collection of elements stored in contiguous memory locations. Although array names can behave like pointers in some situations, arrays and pointers are different data types and have different memory characteristics.