This happens because an integer digit preceded by 0 is interpreted as an octal number. First Four initialization in your array starts with 0 so by default Compiler takes it in octal form and then converts into integer. So as 000,,001, 010,011, converted into 0,1,8,9.