Is it C or C++? Is y signed or unsigned? It will overflow, but what it means depends on size of type, and whether it unsigned or signed. In case if it unsigned it will count from current value to max value that can be fit in this type, if it's signed it's UB as far as I know
Обсуждают сегодня