Which of the following will correctly compare two strings in C?
str1 == str2
strcmp(str1, str2) == 0
str1 = str2
str1.equals(str2)
This question is part of this quiz :