I am trying to understand the order of evaluation of expressions in C++. I have the following examples:
int i = 0;
std::cin >> i >> i; //IS THIS UB?
My first question is that does the above shown snippet produces UB?
Next,
int i = 0;
std::cin >> i >> ++i; //IS THIS UB?
My second question is that does this snippet produces UB?