MCQ Single Best Answer Not Set

QWhat will be the output of the following program?

void main()
{
      char str1[] = "abcd";
      char str2[] = "abcd";
      if(str1==str2)
            printf("Equal");
      else
            printf("Unequal");
}

ID: #1422 Array in C Language 1,322 views
Question Info
#1422Q ID
Not SetDifficulty
Array in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Equal
  • B Unequal
  • C Error
  • D None of these.
Correct Answer: Option B

Explanation

Unequal

Share This Question

Challenge a friend or share with your study group.