please help me out in this regard as this is urgent to me because i stuck in the middle of a program.......
here I have a program like this......
char name[]="rajesh";
char *x=strchr(name,"j");
int k =strlen(name);
int i=x-name;
int p=k-i;
here I want to copy the string "jesh" into name[]..because i want 2 make it in loop....
so i have written like this...
name=&x[p];
I know here the name[] is not of pointer type so it is not working...
please help me....
and I have one more doubt here. can we write strchr(name,'s'); where name is of pointer type....