C Plus Plus Programming

1 of 2175

Dive into creating robust and efficient software applications using C++ on our interactive platform.

You can answer everything here without an account. Sign in to keep your results.

medium1 point

What will be the output of the following C++ code? #include #include #include using namespace std; int main() { srand((unsigned)time(0)); int ran; for (int i = 0; i < 2; i++) { ran = (rand() % 10) + 1; cout << ran; } }

Page 1 of 218