MeteorComm LLC interview question

What's the problem with using a char for an array index (in C)?

Interview Answers

Anonymous

16 Dec 2014

Some compilers will allow signed ints to be promoted to unsigned chars while keeping the index negative.

Anonymous

17 Jul 2015

A better answer is not to write your code to have a negative array index in the first place, rather than resting on a false sense of security from the compiler.