- In mathematics, a vector is an object that has both magnitude and direction. It can be represented as an arrow pointing from one point to another in space. Vectors are used to describe quantities such as velocity, force, and displacement.
- In computer science, a vector refers to a dynamic array that can automatically resize itself as elements are added or removed. It provides a way to store elements sequentially in memory, allowing for efficient access and manipulation.