R

Ram Sharma • 193.86K Points
Coach

Q. What is the output of C program?

Code:
int main()
{
    char str1[] = "FIRST";
    char str2[20];
    strcpy(str2,str1);
    printf("%s %s ",str1,str2);
    printf("%d", (str1!=str2));
    printf("%d", strcmp(str1,str2));
    return 0;
}
  • (A) FIRST FIRST 0 1
  • (B) FIRST FIRST 1 0
  • (C) FIRST FIRST 1 1
  • (D) FIRST FIRST 0 0

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.