Q135
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;
A.
2 4
B.
10 20
C.
Any two number from 1 to 10
AnswerD.
50 6
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board