[Example 1: #include<limits>int main(){// Assuming 32-bit int, the range of values is: −2,147,483,648 to// 2,147,483,647. Assuming 32-bit float and 64-bit double.double d =(double)std::numeric_limits<int>::max()+1;
int x1 = d; // undefined behavior 2,147,483,647+1 is not representable as int} — end example]