---
title: "Luke Li (@infgeoax) | Hashnode"
description: "Programmer. Read the latest articles by Luke Li on Hashnode."
url: "https://hashnode.com/@infgeoax"
---

@infgeoax

# Luke Li

@infgeoax · Joined October 2022

Programmer

## Comments

[This is undefined behavior in C++ and you should never write code like this, and do not bother to make sense of the compiler's output, it's a waste of time. It boils down to "unsequenced multiple modifications" to the same memory location n, i.e. they can happen in any order. P.S. Always add -Wall when compiling with gcc.](https://hashnode.com/posts/dubious-code-using-pre-increment-operator-in-c/637cf801de1a8abc80caf993/comment/638401ed43c7ea1599a5f216)

Comment · Article · Nov 28, 2022 · [Dubious code using pre-increment operator in C++](https://hashnode.com/posts/dubious-code-using-pre-increment-operator-in-c/637cf801de1a8abc80caf993)
