11 Added in the C11 standard. 14 Added in the C14 standard. 17 Added in the C17 standard. 20 Added in the draft C20 standard. A Deprecated in the C17 standard. B Removed in the draft C20 standard. C Deprecated in the C98 standard. 22 rows C Library - math.h - The math.h header defines various mathematical functions and one macro. All the functions available in this library take double as an argument and return double.
-->
A C++ program can call on a large number of functions from this conforming implementation of the C++ Standard Library. These functions perform essential services such as input and output and provide efficient implementations of frequently used operations.
For more information about Visual C++ run-time libraries, see CRT Library Features.
In This Section
C++ Standard Library Overview
Provides an overview of the Microsoft implementation of the C++ Standard Library.
iostream Programming
Provides an overview of iostream programming.
Header Files Reference
Provides links to reference topics discussing the C++ Standard Library header files, with code examples.
Description
The C library function void srand(unsigned int seed) seeds the random number generator used by the function rand.
Declaration
Following is the declaration for srand() function.
Parameters
Return Value
This function does not return any value.
ExampleDev C Math Library Pi
The following example shows the usage of srand() function.
Dev C Library Math
Let us compile and run the above program that will produce the following result −
Dev C Math Library Function
stdlib_h.htm
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2020
Categories |