We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear Sir, I am declaring a pointer to a string as unsigned char *sTemperature [4] = {"NIL","25C ","30C ","37C "}; Note: I cannot use a 2-dimentional array here. Now I wish to write "25F" instead of "25C" i.e. I want to replace 'C' by 'F'. I am unable to do it. I tried to do this with statement STemperature[2][2] = 'F' but this doesn't work. How should I implement this. Regards, Mohit
Looks to me as if this should work. Althow the index may be wrong (sTemperature[1][2] instead of sTemperature[2][2]). And you have to make sure that the strings reside in RAM so that you could modify them.