Which of the following operations is not possible with arrays?

20232024

Which of the following operations is not possible with arrays?

  1. A.

    Traversal

  2. B.

    Insertion

  3. C.

    Deletion

  4. D.

    Dynamic Resizing

Attempted by 1115 students.

Show answer & explanation

Correct answer: D

An array in C is a static data structure, meaning its size is fixed at the time of declaration. While you can traverse, insert, and delete elements, you cannot dynamically resize it without creating a new array and transferring the elements, which isn't directly supported by the array data structure.

Explore the full course: Cocubes Preparation