When I was compiling below code it shows "helloworld" rather than "hello". Why is this happening?
#include<stdio.h>
int main() {
char s1[6] = {'h', 'e', 'l', 'l', 'o'};
char s2[10] = {'w','o','r','l','d'};
printf("%s\n", s1);
return 0;
}