After the following statement executes, what value is stored in the variable num? num = atoi("1000") ;
A) 1000
B) 999 (1000 minus 1 for the null terminator)
C) "1000"
D) "thousand"
E) None of these
Correct Answer:
Verified
Q1: The C++ compiler performs strict array bounds
Q8: The strlen function returns a C-string's length
Q15: The ftoa function converts a floating-point value
Q17: The C++ library provides functions for converting
Q21: A test using the isupper function will
Q24: Which of the following lines of code
Q25: To use the strlen function in a
Q32: This function concatenates the contents of one
Q36: The isdigit function will return a true
Q38: To change a lower case character to
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents