EmbLogic's Blog

Difference between i++ and++i?

Can anyone tell me what is the difference between i++ and ++i w.r.t compiler in C

One Response to Difference between i++ and++i?

  1. pritpal singh says:

    ++i is pre-increment operator means it first increment the value then use it.
    i++ is post-increment operator means first use the value then increment it.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>