Task: Modifying Strings in C - Understanding String Literals vs Character Arrays
Task: Modifying Strings in C - Understanding String Literals vs Character Arrays: a task in Terminal-Lego-15k (Harbor dataset). In C, there is an important distinction between string literals assigned to pointers and character arrays. This difference affects whether you can modify the string…
The task
In C, there is an important distinction between string literals assigned to pointers and character arrays. This difference affects whether you can modify the string contents. A common mistake is attempting to modify a string literal, which causes a segmentation fault because string literals are stored in read-only…
Part of PrimeIntellect/Terminal-Lego-15k.