Does the following code have undefined behavior, for having multiple unsequenced side effects on the variable sid, through the unsequenced call to bar in main:
Код: Выделить всё
int bar() {
static int sid;
return ++sid;
}
void foo(int i1, int i2) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79673162/multiple-unsequenced-modifications-following-argument-evaluation-defined-or-un[/url]
Мобильная версия