Tag: optimisation

Jul

It gets compiled anyway

I feel I misrepresented my intentions in a previous article. In that article, I gave a code example: int i; char c[3]; i = 0; c[i++] = ‘a’; c[i++] = ‘b’; c[i++] = ‘c’; Christopher commented that the code gets optimised by most modern compilers (can you see any inefficiencies in the code?). I agree […]