No, the fact that the full 012345\0 ends up in the object file is
apparently unrelated to what happens to the variable c...
...since only 0123 will get into c at runtime, i.e. a 4 bytes long array
without \0 appendix or other extraordinary padding.
#include <stdio.h>
#include <string.h>
int main()
{
char c[4] = "012345";
printf("%d %d _%s_\n", sizeof c / sizeof *c, strlen(c), c);
return 0;
}
$ ./a.out
4 8 _01230®¿_
$ strings a.out |grep 0123
012345
--
Stefan Richter
-=====-=-=== =--- ---==
http://arcgraph.de/sr/
-