|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
||||
|
||||
|
Re: How to manipulate a variable value using an array?
I need you to confirm if what I am thinking is correct:
myVar = 1; Establish the "shell" as being = 1 array[1] = &myVar; Let the 1st value of array[] = the address of the "shell" (*)(array[1]) = 2; the * means modify/check the contents of the address of myVar printf(*myVar); since the shell wasn't updated, the * is needed to display the contents of the address of myVar since printf(myVar) would return 1 Last edited by amateurrobotguy : 13-12-2007 at 00:36. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| turning inputs into outputs | Huron Warriors | Programming | 4 | 19-04-2007 22:10 |
| How do the Analog Inputs work? | JBotAlan | Electrical | 3 | 07-01-2005 00:11 |
| How to put Inventor pics on the web | Andrew Schuetze | Inventor | 7 | 05-01-2005 13:59 |
| How much time do you put into building your robot | Wayne Doenges | General Forum | 16 | 29-01-2002 19:30 |
| put effort into thread subject | Brandon Martus | General Forum | 12 | 28-01-2002 19:12 |