...
| Code Block | ||||
|---|---|---|---|---|
| ||||
#include <iostream>
void f() {
int i, j;
std::cin >> i >> j;
// ...
} |
Implementation Details
For instance, if the text 12345678901234567890 is the first converted value read from the standard input stream, then i will have the value std::numeric_limits<int>::max() (per [facet.num.get.virtuals] paragraph 3), and j will be uninitialized (per [istream.formatted.arithmetic] paragraph 3). If the text abcdefg is the first converted value read from the standard input stream, then i will have the value 0 and j will remain uninitialized.
...