Mark44
Mentor
- 38,064
- 10,580
Just to be clear, str2 has 4 bytes allocated, but its length, as determined by strlen() would be 3.jtbell said:Of course, nobody would actually do it that way in practice, but it makes explicit the fact that str2 has length 4 whereas str1 has length 3.