total newbie here. i was trying to replace a character in char * but my program gives error
#include int main(int argc, char **argv) { c
The
char *mystring ="love is alweys better yoe"
makes mystring read-only
you need to copy the string into a buffer before you can change it
e.g.
char mystring[128]; strcpy( mystring , "love is alweys better yoe" );