L Lan Anh New member Sep 21, 2021 #1 What will be the output of the following C++ code? Code: #include <cstdlib> #include <iostream> using namespace std; int main() { cout << RAND_MAX << endl; } A. 4385234 B. 12321412 C. Depends on the compiler D. 32564789
What will be the output of the following C++ code? Code: #include <cstdlib> #include <iostream> using namespace std; int main() { cout << RAND_MAX << endl; } A. 4385234 B. 12321412 C. Depends on the compiler D. 32564789
N Nguyễn Thuỳ Chi New member Sep 21, 2021 #2 Answer: c Explanation: RAND_MAX is a function used by the compiler to create a maximum random number. Output: Code: $ g++ rand1.cpp $ a.out 2147483647 Upvote 0 Downvote
Answer: c Explanation: RAND_MAX is a function used by the compiler to create a maximum random number. Output: Code: $ g++ rand1.cpp $ a.out 2147483647