Programming Language › Array in C Language › Question #1422
Single Choice 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,358 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

Explanation

Unequal

Share This Question

Challenge a friend or share with your study group.