πŸ“Š C Programming
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) FIRST FIRST 1 0

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
262
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
91%
Success Rate