+ 1

<cstdlib>

According to its definition , it is used in dynamic memory and random number generation but in the earlier programs where dynamic memory was included why <cstdlib>as a header was not used ?

8th Apr 2019, 3:35 AM
Svojas Pitale
Svojas Pitale - avatar
1 Antwort
0
You might be talking about the C++ 'new' keyword when you referenced 'dynamic memory'. <cstdlib> provides malloc, calloc, which are used in C for dynamic memory allocation. http://www.cplusplus.com/reference/cstdlib/malloc/
8th Apr 2019, 4:30 AM
Fermi
Fermi - avatar