0

Why con't we use vectors instead of arrays ?

c++

14th Oct 2018, 7:43 AM
√!Ï€đŸ˜Šd
√!Ï€đŸ˜Šd - avatar
2 RĂ©ponses
+ 2
Vectors occupies much more memory in exchange for the ability to manage storage and grow dynamically whereas Arrays are memory efficient data structure. This can be a reason why we use arrays rather than vectors in C++ But if we see, vectors are dynamically sized which is a major advantage..!!.
19th May 2019, 11:48 AM
Vaishnavi Rajkumar Pawar
+ 1
no one knows
14th Oct 2018, 10:22 AM
√!Ï€đŸ˜Šd
√!Ï€đŸ˜Šd - avatar