MCQ Single Best Answer Not Set

QWhat will be the output of the program ?

#include<stdio.h>
#include<string.h>
void main()
{
    char str1[20] = "Hello", str2[20] = " World";
    printf("%sn", strcpy(str2, strcat(str1, str2)));
}

ID: #1437 String in C Language 1,041 views
Question Info
#1437Q ID
Not SetDifficulty
String in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Hello World
  • B World
  • C WorldHello
  • D Hello
Correct Answer: Option A

Explanation

Hello World

Share This Question

Challenge a friend or share with your study group.