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
  • 28,260
  • 15
  • 48
  • 83
JustWe
  • 3,866
  • 3
  • 34
  • 76

0 Answers0