You are right. I was trying to change the read-only string in line 8.
Thanks.
Type: Posts; User: Chrys
You are right. I was trying to change the read-only string in line 8.
Thanks.
Sorry maybe I should rephrase the title. I agree with you that the problem is that I am trying to change a read-only variable.
Any suggestions on how I can fix it? I just want to be able to swap...
#include <stdio.h>
#include <string.h>
void swap_chars(char* str, int i, int j);
int main()
{
char* s = "Hello World of C";
printf("Before: %s\n", s);
After searching for a while here are the methods I found for reading/analyzing source code:
Using an editor: Most text editors support regular expressions. Here is a guide for regular...
Hello. I am working on a large system written in C programming. I am not fully aware of the whole system. I get an error and I found which function is causing that error. Any ideas how I could find...