C: Is this type of initialization correct?

c

Solution

This works in C99 but not in C89.

Problem

``` int startingPoint[2]={i,j}; ``` I got this after reading an online code.Is this correct? Means if values of i and j can be changed at runtime before this statement, will this initialize the array with the correct values? Please explain.

Original source

Related problems