Hard
Classifying four behaviors in the standard's terms
Classify all four of these, drawn from the program below, in the C++17 standard's own terminology.
(1) sizeof(int) being 4 on this platform
(2) the order in which f(a(), b()) evaluates a() and b() relative to each other
(3) signed integer overflow in INT_MAX + 1
(4) the value produced by right-shifting a negative signed integer, e.g. -8 >> 1, prior to C++20
main.cpp
#include <climits>
int a();
int b();
void f(int, int);
void demo() {
int sz = sizeof(int); // (1)
f(a(), b()); // (2)
int overflow = INT_MAX + 1; // (3)
int shifted = -8 >> 1; // (4), pre-C++20
}27 of 44 in Compilers