Q. What is the output of C program?

Code:
int main()
{
    char str1[]="JAMES,";
    char str2[15]="BOND ";
    strcat(str2,str1);
    printf("%s",str2);
    printf("%s",str1);
}
  • (A) BOND JAMES,JAMES,
  • (B) JAMES BOND,JAMES,
  • (C) JAMES,JAMES,
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) BOND JAMES,JAMES,

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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