Question:

Will the program outputs "IndiaBIX.com"?

#include<stdio.h>
#include<string.h>

int main()
{
    char str1[] = "IndiaBIX.com";
    char str2[20];
    strncpy(str2, str1, 8);
    printf("%s", str2);
    return 0;
}

Answers:


Keywords:

© 2017 QuizBucket.org