Download citation...
What type of file do you want?
Plain Text
BibTeX
Citation preview
Question
Asked 28 January 2011
Malhar Vora
Seagate Technology
Negative indices in C
Hello Friends,
Anyone please explain to me what happens when i supply negative index in C array. I got garbage value when i tried it.
Programming Languages
Hanan Nimer
Jiwaji University
Array indices start from 0 in C++ , I guess C too..
try to convert negative indices into positive..
Array[(i* -1)] , where i :negative index..
or
Discover by subject area
Join for free
Log in
For full functionality of ResearchGate it is necessary to enable JavaScript. Here are the
instructions how to enable JavaScript in your web browser
.