Multiple choice

Which one of the following can be used to test arrays of primitive quantities for strict equality under Standard C?

  1. qsort()

  2. bcmp()

  3. memcmp()

  4. strxfrm()

  5. bsearch()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Under Standard C, memcmp() is the standard library function used to compare blocks of memory, making it appropriate for checking arrays of primitive quantities for strict equality byte by byte.