Question
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
cout << RAND_MAX << endl;
}
a.
4385234
b.
12321412
c.
Depends on the compiler
d.
None of the mentioned
Posted under Object Oriented Programming Using C++
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the output of this program?
Similar Questions
Discover Related MCQs
Q. Which operator is used to produce a certain number in a specific range?
View solution
Q. Which can be used to create a random number without duplication?
View solution
Q. Ios: : skipws, ios: : left, ios: : dec, ios: : fixed, is an example of
View solution
Q. If we don't want any ios object can be declared in ios class, we can use a default constructor
View solution
Q. C++ uses directive because
View solution
Q. The unformatted input functions are handled by
View solution
Q. The istream class defines the
View solution
Q. Which from the following functions does not extract the delimiter character from the input stream?
View solution
Q. Iostream is a subclass of
View solution
Q. Ios state variables holds
View solution
Q. The class fstream is used for
View solution
Q. The I/O library provides how many stream base classes?
View solution
Q. Which from the following format flag is not included in ios: : adjustfield mask?
View solution
Q. What is the mask of ios: :dec, ios: :oct, ios: : hex in format flags?
View solution
Q. The default constructor for ios class is
View solution
Q. Which from the following is an I/O library stream class?
View solution
Q. The primary purpose of ios stream class is
View solution
Q. Which of the stream base class is used for low level processing?
View solution
Q. For using memory string stream processing, which class is used
View solution
Q. A class that defines the cout, cerr, and clog objects and stream insertion operator, is called
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming Using C++? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!
Microprocessor
Understand the heart of your computer with our Microprocessor MCQs. Topics include...
Cyber Security
Understand the fundamentals of safeguarding digital assets with our Cyber Security...