Increment integer
Increment integer
- Subject: Increment integer
- From: Eivind Andersen <email@hidden>
- Date: Fri, 24 Oct 2003 19:53:34 +0200
Hi,
I try to run the following:
Int number = 0;
number ++;
or
number = number + 1;
but the value of the variable increases with 4 (!)
how can that be?
I've set breakpoints before and after the increment is run, and the
value goes from 0 to 4 then.
How do you increment an integer?
Eivind Andersen
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.