Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Error Message
◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Compiler warning (level 4) C4209
comma operator within array index expression
The value used as an index into an array was the last one of
multiple expressions separated by the comma operator.
An array index legally may be the value of the last expression in
a series of expressions separated by the comma operator. However,
the intent may have been to use the expressions to specify
multiple indexes into a multidimensional array.
For example, the following line, which causes this warning, is
legal in C, and specifies the index c into array a:
a[b,c]
However, the following line uses both b and c as indexes into a
two-dimensional array:
a[b][c]
-♦-