Dave Zych
  • Home
  • About
  • Contact
  • Privacy

increment

A collection of 2 posts
decrement

C# Operator Precedence

In my previous blog post on the difference between i++ and ++i [http://davidzych.com/2013/06/19/whats-the-difference-between-i-and-i-in-c/], I made a comment that i++ had a higher precedence than ++i. In C#, operators are grouped into categories and each category has a precedence. Categories with a higher precedence will
Jun 20, 2013 1 min read
decrement

What's the Difference Between i++ and ++i in C#?

There’s common confusion between the difference of the Prefix (++i) and Postfix (i++) increment operators in C#. A common explanation would be that “The Prefix operator increases iprior to running the statement and the Postfix operator increases iafter running the statement.” Although this is the perceived functionality, it’s
Jun 18, 2013 2 min read
Page 1 of 1
Dave Zych © 2025
  • Data & privacy
  • Contact
Powered by Ghost