a const (i.e. read-only) memory is created in the data segment - (i.e. not the heap/stack? is it created already in compilation?) - 5 bytes for "abcd" and 7 bytes for "123456" ?
so one cannot write new characters into s1 or s2, right? as they point on "read-only" memory?
what about:
PHP:
strcpy(s3, "hello");
also here a 'read-only' memory is created in the data segment?
Some compilers create the second array as a constant as the text is already a constant... So you would declare it volatile so it will create it in RAM..