Understanding Vectors in C++: Key Features

Vectors are Just like arrays but with some special Features that gives you some flexibility i.e If you want to add a element at a later stage ( like a dynamic array) etc. We define a Vector asvector<data type> variable_name(size); whereExample :  vector temperature(7); It defines a vector called temperature which is of type double and stores value … Continue reading Understanding Vectors in C++: Key Features