C++ cstdlib | Programiz D11 Phase 2 Skip to main content

C++ <cstdlib>

The C++ <cstdlib> header file declares a set of general-purpose functions such as: atof() to convert string to double. It also contains a few mathematical functions. For example, abs() to find the absolute value of a number.

Converts String to Double

performs binary search on sorted array

allocates block of memory and initializes to zero

Returns absolute value of an integer

computes integral quotient and remainder of number

deallocates a block of memory

returns pointer to environment variable passed

returns absolute value of long or long int number

Allocates a block of unitialized memory

sorts array using quick-sort algorithm

reallocates a block of previously allocated memory

Seeds pseudo random number for rand()

Converts a string to number

converts string to unsigned long long int