Top

Discussion

What will be the output of the program (Turbo C in 16 bit platform DOS) ?

#include
#include

int main()
{
    char *str1 = "India";
    char *str2 = "BIX";
    char *str3;
    str3 = strcat(str1, str2);
    printf("%s %s\n", str3, str1);
    return 0;
}

 

  • A.IndiaBIX India
  • B.IndiaBIX IndiaBIX
  • C.India India
  • D.Error

Answer: B

No answer description available for this question.

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

Post your comment