Skip to content

Commit 2312ce0

Browse files
committed
Language.
1 parent e4ae64f commit 2312ce0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/strings-and-arrays.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ printf("%c\n", p[1]); // will print 'e'
3939

4040
:heavy\_exclamation\_mark: Pointer initialized with a string literal **may not**
4141
be changed in the same way as an array. The internal array created and
42-
initialized from the string literal is in read-only by the specification.
43-
Writing to it is an undefined behavior. Writing to it with `gcc` and `clang`
44-
will crash the program. However, for example, [Oracle Developer
42+
initialized from the string literal is read-only by the specification. Writing
43+
to it is an undefined behavior. Writing to it with `gcc` and `clang` will crash
44+
the program. However, for example, [Oracle Developer
4545
Studio](https://www.oracle.com/application-development/technologies/developerstudio.html)
4646
used to put such arrays into read-write memory by default in older versions.
4747
So, working code compiled with an older version of that compiler and modifying

0 commit comments

Comments
 (0)