finding the last element in a referenced array
Date: 5 Oct 2004 08:37:38 -0700
i searched the usenet for a while and i wasn't able to find something
useful. perhaps i looked in the wrong places or i am to stupid -
whatever... here's my problem:
i want to access the last elemt of an array... sounds like $#array, i
know, but in my case, the array is stored as a reference in a
construction like this:
i can access the last element by
cos i know it is the second, but i need a way to access the last
element without knowing whether it is the first, or the zeroth or
but it doesn't work this way...
anybody willing to help, explain the mystics or simple
- Re: <ctype.h> toLower()
... that's logic for you - so now anyone who contributes to a Usenet ... > industry when you don't even know what an array is. ... (Of course, your cheap shot ...
- Re: Comparing two functions. Need review...
... > Where is the function prototype? ... then you can assume that his sql_fetch_row returns an array because ... However stupidy you are, DO NOT TOP POST on USENET. ...
- Re: finding the last element in a referenced array
... .rhavin wrote: ... > i searched the usenet for a while and i wasn't able to find something ... To access the last element in an array use -1. ...
- Re: Strange thing about malloc()
... > It's absolutely ridiculous to put this on a worldwide USENET posting. ... I've noticed stranger things about c-releases, ... THe array is first declared ... >>When N is odd, the program will work just fine, however when N is even, it ...
- Re: operands for relational operators <, >, >= etc
... are NULL or both point into the same array or just after it. ... to elements of the same array: `msg' and `ch' are different ... that you are trying to learn C from Usenet. ... and then return to Usenet when you need clarification (or ...