#include #include using namespace std; int main(int argc, char **argv) { if (const int r = rand()) { //initialize and test cout << "The first random number was " << r << ".\n"; } else { cout << "The first random number was zero (" << r << ").\n"; } return EXIT_SUCCESS; //r no longer exists at this point }