Talk:Increment
This disambiguation page does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
Other terms
[edit]An "increment" is also a term for a C-shaped explosive charge which can be attached to the tail of a mortar round and givea slight increase in the distance that the round can be fired. (Usage from Marine Corps infantry)
- Start a new article on that. If necessary (I don't know wheter Wikipedia will take care of this or not), create a disambiguation page. -- Rgiusti 14:13, 25 January 2007 (UTC)
There's also The Increment - a paramilitary unit consisting of ex-SAS/SBS types, used by the British Intelligence and Security services for shady ops.
I'll leave it to someone else to write it up. —Preceding unsigned comment added by 149.254.200.215 (talk) 10:27, 6 March 2009 (UTC)
Undefined behavior
[edit]I would like to write about undefined behavior arosen with the misusage of the increment operator in large expressions, such as
i = i++;
which is amazingly common. However, I don't want to write something too specific. What do you guys think? -- Rgiusti 14:13, 25 January 2007 (UTC)
Ken
[edit]according to http://cm.bell-labs.com/who/dmr/chist.html (Dennis Ritchie on C) the guy, who invented ++ and -- was Ken Thompson ca1 (talk) 22:58, 15 May 2008 (UTC)
Why Haskell?
[edit]Why is there a section about Haskell's list concatenation function? This has nothing to do with increment, it merely happens to use the same symbol as C/C++/etc. do, and should be removed. 137.165.242.97 (talk) 18:22, 11 April 2009 (UTC)
- I agree, for what it's worth --121.218.51.55 (talk) 23:55, 12 June 2009 (UTC)
Most of this page should move
[edit]"Increment" is a common English word with many meanings. This page is not the place for detailed explanations about the increment operator in Javascript and C. All that guff should be moved to a new page called something like Increment (computer programming). Peter Ballard (talk) 06:56, 3 November 2009 (UTC) Or better, Increment operator. Peter Ballard (talk) 23:09, 3 November 2009 (UTC)
0,1 or 3 !
[edit]"may result in having either the value 0 or 1 or even 2." I'm not totaly sure because I don't know how it work exactly. So I can't properly verify. But "int y = x++ + x++" should give :
- 0 if the two increment happen after the sum.
- 1 postincrement as I understand it.
- 3 preincrement as I understand it.
- or even 4 if like the 0 the 2 increments happen before everything else.
But I can't see any way it can get to 2 unless we suppose de compiler is inconsistant with himself. Maybe I'm wrong on this one... --Iluvalar (talk) 05:23, 10 December 2009 (UTC)