answersLogoWhite

0

What is rand function in c plus plus?

Updated: 10/17/2022
User Avatar

Wiki User

14y ago

Best Answer

The rand() function returns an integer (int) value that represents a pseudo-random number between 0 and RAND_MAX, RAND_MAX being a constant declared in the run-time library. Each time rand() is invoked, a different value is returned.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is rand function in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is randomize function in c plus plus?

You can use rand(). Make sure that you use srand()to generate the seed for rand() (if you do not, you get so called pseudo random numbers).


What are the building function in c plus plus?

There is no such term as "building function" in C++.


A c plus plus statement that invokes a function is known as?

...a function call.


When will you make a function inline in c plus plus?

yes,we can make function inline


What is the only function all C plus plus programs must contain?

Every C plus plus program that is a main program must have the function 'main'.


In C plus plus when a function is executing what happens when the end of the function is reached?

Control is returning to the caller of the function.


What do you call an object function in c plus plus?

method


What is a main function in c plus plus?

It is the first function that gets called when the program is executed.


What is the function y equals ax2 plus bx plus c?

It is a quadratic function which represents a parabola.


How do you create folder with c plus plus?

Use function mkdir.


Why to use gotoxy function in c plus plus?

to locate coordinates ..


How do you enter a sentence as input in c plus plus?

Use the C++ getline() function from the standard library.