I've been struggling quite a bit to get some theory and code working together. You see, I was working on some code to use a char* as a string, and I get this error from GCC that I'm trying to go from char to integer or something without a case. Anyways, I'm not sure what I'm doing wrong or what I need to do to fix this code. Here is the faulty code:
What's wrong with this code? Why isn't it working? What do I need to do to get it working? Thanks!Code:char *test_ptr; char string[] = "This is a string"; test_ptr = string; *test_ptr = "Th";