0
char* c = new char[1];
c = { 128 };

When I using Qt debugger to display the contains of c , it shows 128.

So tried another way:

c = 128;

also shows 128 in the debugger.

What happens in memory when assigning a value which bigger than the maximum range.

klutt
  • 30,332
  • 17
  • 55
  • 95
JustWe
  • 4,250
  • 3
  • 39
  • 90

0 Answers0