Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
using namespace std; int main() { vector
cars = {"Volvo", "BMW", "Ford", "Mazda"}; cout << "Size before: " << cars.size() << "\n"; cars.clear(); cout << "Size after: " << cars.size() << "\n"; return 0; }
Size before: 4
Size after: 0