What is the difference between an array and a pointer in C programming language?
21 views
- A) An array is a pointer
- B) A pointer is an array
- C) An array stores multiple values of the same type in contiguous memory locations, while a pointer stores a memory address (Correct Answer)
- D) A pointer stores multiple values of the same type in contiguous memory locations, while an array stores a memory address
Explanation
Answer: C) An array stores multiple values of the same type in contiguous memory locations, while a pointer stores a memory address