Write a single instruction that will store an EVEN random
integer between 54 and 212 inclusive in the variable myran.
(NOTE only generate EVEN random numbers)
Answer / Aditya Pratap Singh
myrand = (rand() % (212 - 54 + 1)) + 54; while (myrand % 2 != 0) myrand++;
| Is This Answer Correct ? | 0 Yes | 0 No |
How are Structure passing and returning implemented by the compiler?
What is virtual destructor? What is its use?
What is an orthogonal base class in c++?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
i want the NIC programmer-B model papaer pattren, iwant the all model papers?
What are c++ storage classes?
If there are 1 to 100 Numbers in array of 101 elements. Which is the easy way to find repeated number?
What is singleton class in c++?
Differentiate between an array and a list?
Differentiate between a pointer and a reference with respect to c++.
Name four predefined macros.
What is std :: flush?