| ??? 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" |
| Topic | Author | Date |
| 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 |



