A related question is a question created from another question. When the related question is created, it will be automatically linked to the original question.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Compiler error: "invalid octal digit". This happens for array [8] and [9]. Have changed array name but to no avail. Picture is attached. Help required
You cannot write the integer constant 8 in that way. You must remove the leading zero.
The C standard requires that any integer constant that starts with 0 and is not immediately followed by the character 'x' is an octal number, and the digits '8' and '9' are not valid octal characters.