Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/07/01 09:18
Read: times


 
#13880 - changing value using array of pointers
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

List of 5 messages in thread
TopicAuthorDate
changing value using array of pointers            01/01/70 00:00      
RE: changing value using array of pointers            01/01/70 00:00      
RE: changing value using array of pointers            01/01/70 00:00      
RE: changing value using array of pointers            01/01/70 00:00      
RE: changing value using array of pointers            01/01/70 00:00      

Back to Subject List