J
janus
Hello All,
I found this is a code I am currently studying, could someone explain it to me.
char * string = "Simulated Annealing = 12847369";
char * value = strchr(string, '=');
*(value ++ ) = 0;
printf("%s ==== %s", value, string);
I noticed that sting will print in a new line, why this?
char* karmarkar = "Karmarkar 958572";
I want to use strchr to find the first occurrence of "space" in string karmarkar.
How do I do that?
Regards,
Janus
I found this is a code I am currently studying, could someone explain it to me.
char * string = "Simulated Annealing = 12847369";
char * value = strchr(string, '=');
*(value ++ ) = 0;
printf("%s ==== %s", value, string);
I noticed that sting will print in a new line, why this?
char* karmarkar = "Karmarkar 958572";
I want to use strchr to find the first occurrence of "space" in string karmarkar.
How do I do that?
Regards,
Janus