Question:

Which statement will you add to the following program to ensure that the program outputs "IndiaBIX" on execution?

#include<stdio.h>

int main()
{
    char s[] = "IndiaBIX";
    char t[25];
    char *ps, *pt;
    ps = s;
    pt = t;
    while(*ps)
        *pt++ = *ps++;

    /* Add a statement here */
    printf("%s\n", t);
    return 0;
}

Answers:


Keywords:

© 2017 QuizBucket.org