Skip to main content

Timeline for Count Consecutive Characters

Current License: CC BY-SA 4.0

5 events
when toggle format what by license comment
Jul 12, 2018 at 15:36 comment added ErikF @JonathanFrech I don't trust gcc's implicit returns. They don't always happen the way that I expect them to, and they often don't work at all for pointers and floating-point. Fortunately, outside of code golf I never use them! :-)
Jul 12, 2018 at 15:33 history edited ErikF CC BY-SA 4.0
Code shortening
Jul 12, 2018 at 11:00 comment added Jonathan Frech Possible 95 bytes.
Jul 12, 2018 at 10:58 comment added Jonathan Frech You do not actually need the k; at the end. Implicit gcc returning is a side effect of variable assignment which appearently is executed as a last step in your for loop.
Jul 12, 2018 at 0:22 history answered ErikF CC BY-SA 4.0