This is my program: Click link to see the program In this program,
char c[5] = "hello\0world";
When I print the string c
using the following line:
printf("\nstring c=%s", c);
It gives the following output (with smile symbol at the end, not exactly like the symbol below, but I can say it is a smiley symbol:
string c=hello(•‿•)
Why doesn't it print hello In the output? because the size of string is only 5?
Thanks in advance.