Skip to main content
8 events
when toggle format what by license comment
Jan 15, 2014 at 12:44 comment added MSalters There's always printf increment : printf("%*cc%n\n", count, &count, 'c'); (Prints 'c' count times, then another 'c', and stores the number of characters written back in count.
Jan 13, 2014 at 15:01 comment added greggo +1, but noting that it could be too slow, and you could add multi-thread support, carefully locking the 'count++' :-)
S Jan 12, 2014 at 9:06 history suggested Peter Mortensen CC BY-SA 3.0
Copy edited.
Jan 12, 2014 at 9:03 review Suggested edits
S Jan 12, 2014 at 9:06
Jan 11, 2014 at 20:20 comment added Darren Stone @Timtech |= 1 (will work on 50% of numbers, 100% of the time)
Jan 11, 2014 at 20:06 comment added Timtech @DarrenStone -= -1
Jan 11, 2014 at 18:28 comment added Darren Stone You have my up vote. I heard Monte Carlo is what NASA uses for its arithmetic. But I'd like to see this without the two instances of the ++ operator.
Jan 11, 2014 at 17:27 history answered Petr CC BY-SA 3.0