Multiple choice

What will be the result of the following expression in C? x=strcmpi(&&ABC&&,&&abc&&); printf(&&x=%d&&,x);

  1. x=1

  2. x=0

  3. x=2

  4. x=3

  5. none of these

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

This is the correct option as strcmpi() function ignores the case of arguments and returns 0, when two arguments are equal.