🎴 Flashcard Mode

C Programming Fundamentals

Card1 / 5
Mastered0
Review0
QuestionClick to flip

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

AnswerClick to flip back
A
x=0
💡 Explanation:

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

Change Mode