Give names of some languages that use negative array index?
anujthefuhrer 0 Newbie Poster
Recommended Answers
Jump to Post>>Give names of some languages that use negative array index
A couple centuries ago I worked with a version of HP BASIC that would let you use negative index values without doing any of the tricks as previously posted in this thread. When the array is declared you specified …
Jump to PostI don't understand why you have done b++
Negative indices are syntactically allowed, but the index also has to be valid. Arrays in C are 0-based, which means if you want to index them with negative values, you need to shift the "beginning" of the array forward enough to make …
All 8 Replies
Moschops 683 Practically a Master Poster Featured Poster
anujthefuhrer 0 Newbie Poster
Caligulaminus 35 Junior Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
anujthefuhrer 0 Newbie Poster
dospy 51 Junior Poster in Training
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Narue 5,707 Bad Cop Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.