![]() |
| | #1 |
| Registered User Join Date: Jun 2009
Posts: 2
| Redefining arrays I just would like to be clear on the syntax for redefining specific array variables. For example, if i would like example[3][1] to be redefined as 9, what would the syntax be? |
| FlyingShoes is offline | |
| | #2 |
| C++ Witch Join Date: Oct 2003 Location: Singapore
Posts: 10,368
| As in assignment to a specific array element? That would be like an assignment to a "ordinary" variable, e.g., Code: example[3][1] = 9;
__________________ C + C++ Compiler: MinGW port of GCC Build + Version Control System: SCons + Bazaar Look up a C/C++ Reference and learn How To Ask Questions The Smart Way |
| laserlight is offline | |
![]() |
| Tags |
| arrays, redefine, syntax |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pointers & arrays and realloc! | zesty | C Programming | 14 | 01-19-2008 04:24 PM |
| Parallel arrays, dynamic memory allocation, and sorting arrays | sbaker1313 | C Programming | 16 | 01-01-2008 04:07 PM |
| Need Help With 3 Parallel Arrays Selction Sort | slickwilly440 | C++ Programming | 4 | 11-19-2005 10:47 PM |
| Crazy memory problem with arrays | fusikon | C++ Programming | 9 | 01-15-2003 09:24 PM |
| sorting arrays | Unregistered | C++ Programming | 3 | 10-13-2001 05:39 PM |