C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-25-2009, 12:10 PM   #1
Registered User
 
Join Date: Jun 2009
Posts: 2
Redefining arrays

this might seem basic but i'm just starting with C (and this forum).

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   Reply With Quote
Old 06-25-2009, 12:16 PM   #2
C++ Witch
 
laserlight's Avatar
 
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   Reply With Quote
Reply

Tags
arrays, redefine, syntax

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 01:24 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22