File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ printf("%c\n", p[1]); // will print 'e'
39
39
40
40
: heavy \_ exclamation\_ mark: Pointer initialized with a string literal ** may not**
41
41
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
45
45
Studio] ( https://www.oracle.com/application-development/technologies/developerstudio.html )
46
46
used to put such arrays into read-write memory by default in older versions.
47
47
So, working code compiled with an older version of that compiler and modifying
You can’t perform that action at this time.
0 commit comments