What is <stdlib.h> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is <stdlib.h>

When I use it

15th Oct 2020, 12:21 PM
Nafis Sadiq Bhuyan
Nafis Sadiq Bhuyan - avatar
3 Answers
+ 3
It's a C standard general utility library header file. for details about the functions it have visit👇 http://www.cplusplus.com/reference/cstdlib/
15th Oct 2020, 12:25 PM
Arsenic
Arsenic - avatar
+ 3
In c language we using printf and scanf these function are defined in stdio.h headerfile and many other function are defined in stdio.h . We cannot tell you all function name in one or two lines . Same in c malloc, calloc are defined in stdlib.h headerfile . We using return `EXIT_SUCCESS` statement which is declared by the header `<stdlib.h>`. It also declares `EXIT_FAILURE`.Unfortunately with a value of 1 in Windows, but its a very long story . If you want to know more about this headerfile you can search on Google. You can find better explanation.
15th Oct 2020, 12:32 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
thank you all
15th Oct 2020, 3:21 PM
Nafis Sadiq Bhuyan
Nafis Sadiq Bhuyan - avatar