'increment hex value by a certain value in C++?

I have a hexadecimal variable that I want to increase its inc value by x20 in every loop. For example for 10 rounds, inc value increase by 0x20 and add to the pam in each loop.

but now i'm getting 1060,1061,1063,1066,106a,106f,1075 etc...

int main() {
  int inc = 0x20;
  int pam = 0x1040;

  for ( int i = 0; i < 10; i ++ ) {
      inc = inc++;
      cout << pam+inc << endl;
      }
  return 0;
}

What I want to get is 1040, 1060, 1080, 10A0, etc. Example;

Output:
pam + inc
pam + inc + inc
pam + inc + inc + inc
etc...
c++


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source