News for hackers. Stuff that matters.
Re:Is C# a low-level language? by tokyodude on Saturday March 02, 2019 @11:35PM (#19292748)
Because you should write what you mean, not just assume the compiler will convert what you wrote into what you mean.

    i++
means

    var temp = i;
    i = i + 1;
    return temp;
where as

    ++i
means

    i = i + 1
    return i;
So if you actually mean to create a temp then use i++ , if you don't use ++i

See example of actually implementing them

https://stackoverflow.com/a/3846374

There are no comments on this comment yet.