I have got here two programs with me, both are doing exactly the same task. They are just setting an boolean array / vector to the value true. The program using vector takes
Have a look at this
Using arrays or std::vectors in C++, what’s the performance gap?