Top

Discussion

What will be the output of the program ?

#include
#include

int main()
{
    char str1[5], str2[5];
    int i;
    gets(str1);
    gets(str2);
    i = strcmp(str1, str2);
    printf("%d\n", i);
    return 0;
}

 

  • A.Unpredictable integer value
  • B.-1
  • C.Error

Answer: A

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment