Top

Discussion

What will be the output of the program ?

#include

int main()
{
    char str1[] = "India";
    char str2[] = "BIX";
    char *s1 = str1, *s2=str2;
    while(*s1++ = *s2++)
        printf("%s", str1);

    printf("\n");
    return 0;
}

 

  • A.IndiaBIX
  • B.BndiaBIdiaBIXia
  • C.India
  • D.(null)

Answer: B

No answer description available for this question.
 

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

Post your comment