---
title: "Discussion on \"Difference between x++ and x+1\" | Hashnode"
description: "Discussion on \"Difference between x++ and x+1\". Have you ever wondered what the heck is the difference between x++ and x=x+1? \nWhen x++ is used, the compiler increases the value of x by 1 and\nIn the case of x=x+1, it again increases the value of x by 1. What to wonder?🤷🏼‍♂️\nLet's see an example ..."
url: "https://hashnode.com/posts/difference-between-incement-and-add-operators/5fdba7c6b78ac62dff80a329"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Difference between x++ and x+1](https://saiphani.hashnode.dev/difference-between-incement-and-add-operators?utm_source=hashnode&utm_medium=feed)

Have you ever wondered what the heck is the difference between x++ and x=x+1? When x++ is used, the compiler increases the value of x by 1 and In the case of x=x+1, it again increases the value of x by 1. What to wonder?🤷🏼‍♂️ Let's see an example ...

Dec 17, 2020 · 4 min read · saiphani.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#programming](https://hashnode.com/tag/programming)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)
-   [#developer](https://hashnode.com/tag/developer)
-   [#development](https://hashnode.com/tag/development)

## Written by

[Sai Phani Krishna Pasumarthi](https://hashnode.com/@saiphani)

@saiphani · Hyderabad, Telangana, India

  
[View profile](https://hashnode.com/@saiphani)

Software Developer at Microsoft | Tech Enthusiast | Java | JavaScript | Full Stack Dev

I am a Full Stack Software Developer working at Microsoft.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
