The following code runs infinitely. Here, prices is a vector of int type with 0 elements.
for (int i = 0; i < (prices.size()-1); i++)
{
}
Can anyone please explain to me the reason why the loop condition is failing? I am running the code in Visual Studio 2019 community edition.