Question discussion

Say we have two compare two strings which of the following function/functions can you use?1. strcmp()2. strcasecmp()3. strspn()4. strcspn()

306617Medium 1 reply 581 views
39
Say we have two compare two strings which of the following function/functions can you use?1. strcmp()2. strcasecmp()3. strspn()4. strcspn()
  • A1 and 2
  • B3 and 4
  • CNone of the mentioned
  • DAll of the mentioned
Correct answer: D

Discussion 1

0
CCommunity
All of the mentioned

All of the functions mentioned above can be used to compare strings in some or the other way.