Adding char to string

lloyddean:
The 'sizeof' the array or the number of elements in the array?

sizeof gives the size in bytes. surepic's solution gives the number of elements (for char or byte, the result is the same).