If you modify the size of a list while iterating, you may encounter unexpected behavior such as skipping elements or infinite loops.