C++ does not initialize POD (Plain Old Data) variables defined on the stack. Variable x that is located on the stack can take an arbitrary value, since it was not initialized during its definition. Therefore, the loop can be executed any number of times.
Ввійдіть щоб вподобати
Ввійдіть щоб прокоментувати