Standard Library Functions - Study Mode

[#186] Which function is used to convert a string to an integer in C?
Correct Answer

(A) atoi()

[#187] What is the return value of the 'rand' function in C?
Correct Answer

(A) A random integer

[#188] Which function is used to generate a random number in C?
Correct Answer

(A) rand()

[#189] What is the purpose of the 'atoi' function in C?
Correct Answer

(A) Converts a string to an integer

[#190] What does the given C code do? double atan2 (double y, double x)

Correct Answer

(C) The atan2 function returns the arc tangent of y/x