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

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs