Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous

What will be the output of the following C++ code? #include <cstdlib> #include <iostream> using namespace std; int main() { int ran = rand(); cout << ran << endl; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • 0 to RAND_MAX

Related Computer Questions

How many simultaneous Telnet sessions does a Cisco router support by default? The modifier used to define a class which does not have objects of its own but acts as a base class for its subclass is? 1GB is equal to______ bytes? If your routing table has a static, a RIP, and an IGRP route to the same network, which route will be used to route packets by default? When customers of a Web site are unable to access it due to a bombardment of fake traffic, it is known as: