An array in most programming languages is just a contiguous area of addressable storage and the language, say C, Rexx, NetRexx/JAVA keeps track of each element's 'address' starting from zero. When you tell C to address a negative amount it obliges with whatever garbage was in storage preceding the array's storage area. Rexx and NetRexx are not so brutal. I'm not sure what JAVA does; In general, it follows C.
if y'u are trying to get negative value the program itself is vague, or absurd, because negative statements are considered as junk statements in programming languages, only positive statements are considered in p languages, so y'ur question is vague.
index of an array, actually points to a position relative to the base address of the array(.i.e address of a[0]). Therefore a[3] is a location 3 positions after a[0] or is equivalent to:
*p=&a[0];
*p++; *p++; *p++;
hence a[-2] implies
*p--; *p--; *p--;
which is still a memory location(provided it exists) nevertheless (and can therefore show the value at the location) , but is not a part of your logical array,a
Hi need a sample open source for document reconstructions.... with DP and prims algo in java.. Actually this real time proj based on forensic science... Can any one help plz come on chat in google mail