cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
how to extract last 4 elements of a 2-D
how to extract last 4 elements of a 2-D array?
Jun 3, 2009 at 5:15pm UTC
unnati
(7)
Hi all
i have a 2-D array A[4][400] and i want to extract and save only its last 4 elements..can anyone please tell me exactly how i should do it? Any info on 2-d arrays would be great too
-thanx
Jun 3, 2009 at 5:19pm UTC
Bazzy
(6281)
save A[3][396], A[3][397], A[3][398] and A[3][399]
http://www.cplusplus.com/doc/tutorial/arrays/
http://www.cplusplus.com/doc/tutorial/files/
Jun 3, 2009 at 5:47pm UTC
Hammurabi
(399)
Or declare it as
A[400][4]; // 400 rows of 4 cols
A[399][0]
A[399][1]
A[399][2]
A[399][3]
Topic archived. No new replies allowed.