printf("%d:%d\n",i,tab[i++]);
based on C standard, whose output is correct?
The program exhibits undefined behaviour: it reads "i" twice while also writing it, without any intervening sequence point. See e.g. 6.5/2 in the C99 standard. Segher
printf("%d:%d\n",i,tab[i++]);
based on C standard, whose output is correct?
The program exhibits undefined behaviour: it reads "i" twice while also writing it, without any intervening sequence point. See e.g. 6.5/2 in the C99 standard. Segher