What is the difference between the spaceship operator(<=>) and the strcmp() function?
What is the difference between the spaceship operator(<=>) and the strcmp() function?
A . There is no difference in functionality
B . strcmp() returns a Boolean value, the spaceship operator a number
C . strcmp() does a case-intensive comparison, the spaceship operator does not
D . The spaceship operator returns -1, 0 or 1; strcmp() may return any integer
Answer: D
Subscribe
Login
0 Comments
Inline Feedbacks
View all comments