
Suzanne O. answered 02/19/20
International Experience and Multiple State Certifications
Hi Ethan. I understand that you need an answer to your specific question, but I want to make sure that you know what a header is and does. You will need to understand this later on, because you will be defining your own functions, and you will probably be asked to create your own reusable objects.
stdlib.h
C Standard General Utilities Library
This header defines several general purpose functions, including dynamic memory management, random number generation, communication with the environment, integer arithmetics, searching, sorting and converting.
So the external file stdlib.h contains the definitions for standard functions that can be called as long as the file has been properly included.
Back to your question:
Which of the following functions are in cstdlib.h? Check all that apply
a) ispunct (Check if character is a punctuation character, found in ctype.h) 😫
b) strlen (Get string length, found in string.h) 😫
c) toupper (Convert lowercase letter to uppercase, found in ctype.h) 😫
d) strcmp (Compare two strings, found in string.h) 😫
e) atol (Convert string to double) ✔
f) atof (Convert string to long integer) ✔