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

Back to Subject List

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


 
#13907 - RE: changing value using array of pointers
Try it that way:

sTemperature[2] --> points to to the first char of "25C" -->'2'

*sTemperature[2]='3'; changes the first char, now you have "35C"

sTemperature[2]+2 --> points to the third char of "25C" --> 'C'

*(sTemperature[2]+2) ='F'; changes the third char, now you have "35F"





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