Is it risky to initialize a global variable with an increment of another global variable?
Example:
int a=0;
int b=a++;
int c=a++;
int d=a++;
This should output:
0,1,2,3
Could it happen that compiler could read a global value before the other?
a==0, b==1, c==2, d==3?