14,422,081 members

# Welcome to the Lounge

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 Re: postfix increment and decrement can get bent OriginalGriff4-Dec-19 0:20 OriginalGriff 4-Dec-19 0:20
 Re: postfix increment and decrement can get bent honey the codewitch4-Dec-19 0:24 honey the codewitch 4-Dec-19 0:24
 Re: postfix increment and decrement can get bent Jörgen Andersson4-Dec-19 6:30 Jörgen Andersson 4-Dec-19 6:30
 Re: postfix increment and decrement can get bent Kornfeld Eliyahu Peter4-Dec-19 0:28 Kornfeld Eliyahu Peter 4-Dec-19 0:28
 Re: postfix increment and decrement can get bent honey the codewitch4-Dec-19 0:32 honey the codewitch 4-Dec-19 0:32
 Re: postfix increment and decrement can get bent F-ES Sitecore4-Dec-19 0:45 F-ES Sitecore 4-Dec-19 0:45
 Re: postfix increment and decrement can get bent honey the codewitch4-Dec-19 1:11 honey the codewitch 4-Dec-19 1:11
 Re: postfix increment and decrement can get bent F-ES Sitecore4-Dec-19 1:27 F-ES Sitecore 4-Dec-19 1:27
 "x = ++i" loads i onto the stack, pushes 1 onto the stack, adds them, duplicates the return (so two copies of i+1 are on the stack), pops one into i and one into x. "x = i++" loads i onto the stack, duplicates it (so there are two copies of i on the stack), pushes 1 onto the stack, adds them (now there is i and i+1 on the stack), pops one into i and one into x. Both operations involve three stack values and six operations so are no more or less efficient than each other.
 Re: postfix increment and decrement can get bent honey the codewitch4-Dec-19 1:47 honey the codewitch 4-Dec-19 1:47
 Re: postfix increment and decrement can get bent F-ES Sitecore4-Dec-19 2:05 F-ES Sitecore 4-Dec-19 2:05
 Re: postfix increment and decrement can get bent honey the codewitch4-Dec-19 2:18 honey the codewitch 4-Dec-19 2:18
 Re: postfix increment and decrement can get bent F-ES Sitecore4-Dec-19 2:24 F-ES Sitecore 4-Dec-19 2:24
 Re: postfix increment and decrement can get bent honey the codewitch4-Dec-19 2:38 honey the codewitch 4-Dec-19 2:38
 Re: postfix increment and decrement can get bent F-ES Sitecore4-Dec-19 3:51 F-ES Sitecore 4-Dec-19 3:51
 Re: postfix increment and decrement can get bent honey the codewitch4-Dec-19 3:52 honey the codewitch 4-Dec-19 3:52
 Re: postfix increment and decrement can get bent F-ES Sitecore4-Dec-19 3:55 F-ES Sitecore 4-Dec-19 3:55
 Re: postfix increment and decrement can get bent harold aptroot4-Dec-19 0:33 harold aptroot 4-Dec-19 0:33
 Re: postfix increment and decrement can get bent honey the codewitch4-Dec-19 0:34 honey the codewitch 4-Dec-19 0:34
 Re: postfix increment and decrement can get bent Daniel Pfeffer4-Dec-19 0:37 Daniel Pfeffer 4-Dec-19 0:37
 Re: postfix increment and decrement can get bent honey the codewitch4-Dec-19 0:38 honey the codewitch 4-Dec-19 0:38
 Re: postfix increment and decrement can get bent W∴ Balboos4-Dec-19 1:57 W∴ Balboos 4-Dec-19 1:57
 Re: postfix increment and decrement can get bent honey the codewitch4-Dec-19 2:17 honey the codewitch 4-Dec-19 2:17
 Re: postfix increment and decrement can get bent lw@zi 4-Dec-19 3:11 lw@zi 4-Dec-19 3:11
 Re: postfix increment and decrement can get bent honey the codewitch4-Dec-19 3:16 honey the codewitch 4-Dec-19 3:16
 Re: postfix increment and decrement can get bent lw@zi 4-Dec-19 3:18 lw@zi 4-Dec-19 3:18
 Last Visit: 19-Jan-20 8:38     Last Update: 19-Jan-20 8:38 Refresh « Prev1...214215216217218219220221222223 Next »