If I run the following code, graph[0][0]
gets 1
while graph[0][1]
gets 4
.
In other words, the line graph[0][++graph[0][0]] = 4;
puts 1
into graph[0][0]
and 4
into graph[0][1]
.
I would really appreciate if anyone can offer reasonable explanation.
I observed this from Visual C++ 2015 as well as an Android C compiler (CppDriod).
static int graph[10][10];
void main(void)
{
graph[0][++graph[0][0]] = 4;
}