Assuming that string1 = "hello" and string2 = "hello world", which of the following returns 0?
A) strcmp(string1, string2) ;.
B) strcmp(string1, string2, 6) ;.
C) Strncmp(string1, string2, 5) ;.
D) strncmp(string1, string2, 6) ;.
Correct Answer:
Verified
Q17: Which of the following is not a
Q18: Two structure variables of the same type
Q19: The most basic unit of data on
Q20: The number of bits in a bit
Q21: The main difference between the functions atof,
Q23: The _ function allows characters of one
Q24: Which function would be the most useful
Q25: Strtok does not:
A) Replace each delimiting character
Q26: Memcmp would return _ for the call
Q27: Which of the following correctly copies the
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