Top

Discussion

What will be the output of the program ?

#include
#include

int main()
{
    char str1[20] = "Hello", str2[20] = " World";
    printf("%s\n", strcpy(str2, strcat(str1, str2)));
    return 0;
}

 

  • A.Hello
  • B.World
  • C.Hello World
  • D.WorldHello

Answer: C

No answer description available for this question.

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

Post your comment