Pergunta de entrevista da empresa Tata Consultancy Services

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

Resposta da entrevista

Sigiloso

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.