what would be the output!
#includestdio.h
#includestring.h
int main()
{
char str1[6]="HELLO";
char str2[4];
strncpy(str2,str1,sizeof(str2));
printf("%s",str2);
return 0;
}


Posted on by