Give names of some languages that use negative array index?
anujthefuhrer
0
Newbie Poster
Recommended Answers
Jump to PostC and C++.
a[-1] is valid syntax.
Jump to Postint a[10]; int* b = a; b++; b[-1] = 123;
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.