I would change the array size to 4. Then replace the double quotes for the characters with single quotes. I would make the third byte the null byte now because you are not guaranteed that the last byte is necessarily the null byte. Let me show you what I mean.